diff --git a/app/Ninja/Datatables/PaymentDatatable.php b/app/Ninja/Datatables/PaymentDatatable.php index 4ca1d2839fc8..22006bf742e1 100644 --- a/app/Ninja/Datatables/PaymentDatatable.php +++ b/app/Ninja/Datatables/PaymentDatatable.php @@ -10,6 +10,12 @@ class PaymentDatatable extends EntityDatatable { public $entityType = ENTITY_PAYMENT; + protected static $refundableGateways = array( + GATEWAY_STRIPE, + GATEWAY_BRAINTREE, + GATEWAY_WEPAY, + ); + public function columns() { return [ diff --git a/app/Services/PaymentService.php b/app/Services/PaymentService.php index c4dabe5b9a2c..b227b466413c 100644 --- a/app/Services/PaymentService.php +++ b/app/Services/PaymentService.php @@ -30,12 +30,6 @@ class PaymentService extends BaseService public $lastError; protected $datatableService; - protected static $refundableGateways = array( - GATEWAY_STRIPE, - GATEWAY_BRAINTREE, - GATEWAY_WEPAY, - ); - public function __construct(PaymentRepository $paymentRepo, AccountRepository $accountRepo, DatatableService $datatableService) { $this->datatableService = $datatableService;