1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Update driver to handle PPCP style payments

This commit is contained in:
David Bomba 2023-10-19 16:10:51 +11:00
parent 74462c4ef2
commit 1d5961c764

View File

@ -326,6 +326,23 @@ class PayPalPPCPPaymentDriver extends BaseDriver
]
];
$data['payee'] = [
"email_address" => "seller@example.com",
[
"payment_instruction" => [
"disbursement_mode" => "INSTANT",
"platform_fees" => [
[
"amount" => [
"currency_code" => $this->client->currency()->code,
"value" => (string)$data['amount_with_fee']
],
],
],
],
],
];
$r = $this->gatewayRequest('/v2/checkout/orders', 'post', $order);
nlog($r->json());