问题
I'm trying to integrate Paypal Adaptive checkout using Active Merchant and active_paypal_adaptive_payment gem. During User registration, User needs to register his/her paypal account in order to receive the payment during the transaction.
I've setup all the credentials for activemerchant. While registering user Account in paypal I got the following error.
You are logging into the account of the API caller of this transaction. Please change your login information and try again.
Is it possible to use same API calling account as secondary receiver during checkout?
Thank you, Any suggestion will be appreciated.
回答1:
You can use Chain Payments where the API caller email address and the secondary receiver email address are the same. You get this error You are logging into the account of the API caller of this transaction. Please change your login information and try again.
when you are using the api caller's email as the sender of the payment.
receiverList.receiver(0).email = YYY@gmail.com
receiverList.receiver(0).amount = 5.00
receiverList.receiver(0).primary = true
receiverList.receiver(1).email = XXX@gmail.com `this can be the api caller's email address as well`
receiverList.receiver(1).amount = 2.00
receiverList.receiver(1).primary = false
feesPayer = EACHRECEIVER
来源:https://stackoverflow.com/questions/34262762/using-api-calling-account-as-receiver-account