Using API calling account as receiver account

久未见 提交于 2020-01-09 11:53:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!