I am creating a marketplace-type checkout process with PayPal's Express Checkout. Am I correct to call the Classic API with
in the SetExpressCheckout call to ensure that [email protected] is the recipient of the payment, not myself?
I'll need to do this for a bunch of sellers on the marketplace, so that everybody can receive payments directly from buyers to their PayPal account.
It's not in the documentation at https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/ but I found it searching on Google.
Am I calling this correctly?
UPDATE 1:
Or should I be using PAYMENTREQUEST_n_SELLERPAYPALACCOUNTID?
UPDATE 2:
I tried using PAYMENTREQUEST_n_SELLERPAYPALACCOUNTID? and it didn't work, saying I did not have authorization. But then I used SUBJECT= and it worked fine, even though that account never granted me permissions.
Is this the correct way? I just need people being able to send payments to multiple sellers. I don't need to do anything fancy like refunds or things like that.
Are you trying to pass PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID without any other credentialing parameters (e.g., USER, PWD, and SIGNATURE)? This might be your problem.
There are three different ways that you can process payments for another user without API permissions:
SUBJECT by itself.USER, PWD, SIGNATURE, and SUBJECT.USER, PWD, SIGNATURE, and PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID. (Note that it should be PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID, not PAYMENTREQUEST_n_SELLERPAYPALACCOUNTID.Here are the caveats:
PAYMENTREQUEST_0_PAYMENTACTION is set to Sale.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With