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,18 +327,10 @@ class PayPalPPCPPaymentDriver extends BaseDriver
]; ];
$data['payee'] = [ $data['payee'] = [
"email_address" => "seller@example.com", "merchant_id" => $this->company_gateway->getConfigField('merchantId'),
[ [
"payment_instruction" => [ "payment_instruction" => [
"disbursement_mode" => "INSTANT", "disbursement_mode" => "INSTANT",
"platform_fees" => [
[
"amount" => [
"currency_code" => $this->client->currency()->code,
"value" => (string)$data['amount_with_fee']
],
],
],
], ],
], ],
]; ];