Fix for payment datatable list

This commit is contained in:
Hillel Coren 2016-05-23 21:10:40 +03:00
parent b2beb8fb73
commit 406df6f3d8
2 changed files with 6 additions and 6 deletions

View File

@ -10,6 +10,12 @@ class PaymentDatatable extends EntityDatatable
{ {
public $entityType = ENTITY_PAYMENT; public $entityType = ENTITY_PAYMENT;
protected static $refundableGateways = array(
GATEWAY_STRIPE,
GATEWAY_BRAINTREE,
GATEWAY_WEPAY,
);
public function columns() public function columns()
{ {
return [ return [

View File

@ -30,12 +30,6 @@ class PaymentService extends BaseService
public $lastError; public $lastError;
protected $datatableService; protected $datatableService;
protected static $refundableGateways = array(
GATEWAY_STRIPE,
GATEWAY_BRAINTREE,
GATEWAY_WEPAY,
);
public function __construct(PaymentRepository $paymentRepo, AccountRepository $accountRepo, DatatableService $datatableService) public function __construct(PaymentRepository $paymentRepo, AccountRepository $accountRepo, DatatableService $datatableService)
{ {
$this->datatableService = $datatableService; $this->datatableService = $datatableService;