Inject PPCP merchant ID @ payment

This commit is contained in:
David Bomba 2023-10-19 17:26:52 +11:00
parent 1d5961c764
commit db0b1b9483

View File

@ -327,21 +327,13 @@ class PayPalPPCPPaymentDriver extends BaseDriver
];
$data['payee'] = [
"email_address" => "seller@example.com",
"merchant_id" => $this->company_gateway->getConfigField('merchantId'),
[
"payment_instruction" => [
"disbursement_mode" => "INSTANT",
"platform_fees" => [
[
"amount" => [
"currency_code" => $this->client->currency()->code,
"value" => (string)$data['amount_with_fee']
],
],
],
],
],
];
"disbursement_mode" => "INSTANT",
],
],
];
$r = $this->gatewayRequest('/v2/checkout/orders', 'post', $order);