Refund advance payment api for adaptive PayPal payments, when the sender is more than one?

I have PayPal responsive payments included on my website. When a customer buys a product from a third-party seller, then about 90% of the amount that the seller receives is received and about 10% of the amount is transferred to me. Bu in case the customer wants to return this product, then he must return the amount from both accounts, which are the main receiver and secondary receiver. So how to do this using api return. I want to use this php api, but I think it is only for one receiver.

Return api

Is there any other solution for this, so that payment will be deducted from the primary and secondary payee?

+5
source share
1 answer

Refer to https://developer.paypal.com/docs/classic/api/adaptive-payments/Refund_API_Operation/ ("Using a payment key to refund full payment"), you can call https://svcs.sandbox.paypal.com / AdaptivePayments / Refund API. The total amount from each recipient is returned to the sender.

+2
source

All Articles