mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update driver to handle PPCP style payments
This commit is contained in:
parent
74462c4ef2
commit
1d5961c764
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user