Reputation: 1
I am trying to test the Paypal Delayed Chained Payment API's.
There are two receivers 'A' and 'B', A is a primary receiver (US) and B is the second receiver (MX) when I release the payment using the Execute API the second receiver is not receiving the payment but the payments are being deducted from the buyer and primary accounts.
I am adding the request array below.
[
'actionType' => 'PAY_PRIMARY',
'clientDetails' => [
'applicationId' => 'APP-80W284485P519543T',
'ipAddress' => '127.0.0.1'
],
'currencyCode' => 'USD',
'feesPayer' => 'EACHRECEIVER',
'memo' => 'Example',
'receiverList' => [
'receiver' => [
[
'email' => '[email protected]',
'primary' => true,
'amount' => 25,
],
[
'email' => '[email protected]',
'primary' => false,
'amount' => 20,
]
]
],
'requestEnvelope' => [
'errorLanguage' => 'en_US'
],
'returnUrl' => 'http://localhost/hairInferno/success.php',
'cancelUrl' => 'http://localhost/hairInferno/success.php'
];
Upvotes: 0
Views: 34
Reputation: 30432
Adaptive Payments was discontinued in December 2017 and no new APP IDs are generated for use in the live environment, so I'd drop this integration pattern
You could look around the PayPal for Partners documentation, but I'm not sure whether any of this would be available to you: https://developer.paypal.com/docs/partners/
Something with Payouts might be the best interim solution: https://developer.paypal.com/docs/payouts/
Upvotes: 1