mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Refunds & fixes for profileId
This commit is contained in:
parent
8c8be024a3
commit
4db925104a
@ -105,6 +105,11 @@ class Gateway extends StaticModel
|
||||
GatewayType::PAYPAL => ['refund' => true, 'token_billing' => true]
|
||||
];
|
||||
break;
|
||||
case 7:
|
||||
return [
|
||||
GatewayType::CREDIT_CARD => ['refund' => true, 'token_billing' => true], // Mollie
|
||||
];
|
||||
break;
|
||||
default:
|
||||
return [];
|
||||
break;
|
||||
|
@ -145,6 +145,14 @@ class MolliePaymentDriver extends BaseDriver
|
||||
'code' => 200,
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
'transaction_reference' => $refund->id,
|
||||
'transaction_response' => json_encode($refund),
|
||||
'success' => true,
|
||||
'description' => $refund->description,
|
||||
'code' => 0,
|
||||
];
|
||||
} catch (ApiException $e) {
|
||||
SystemLogger::dispatch(
|
||||
['server_response' => $refund, 'data' => request()->all()],
|
||||
|
Loading…
Reference in New Issue
Block a user