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:
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…
Reference in New Issue
Block a user