1
0
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:
Benjamin Beganović 2021-08-04 14:31:47 +02:00
parent 8c8be024a3
commit 4db925104a
2 changed files with 13 additions and 0 deletions

View File

@ -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;

View File

@ -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()],