Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

ruby on rails - Using API calling account as receiver account

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.

enter image description here Is it possible to use same API calling account as secondary receiver during checkout?

Thank you, Any suggestion will be appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 = [email protected]
receiverList.receiver(0).amount = 5.00
receiverList.receiver(0).primary = true
receiverList.receiver(1).email = [email protected] `this can be the api caller's email address as well`
receiverList.receiver(1).amount = 2.00
receiverList.receiver(1).primary = false
feesPayer = EACHRECEIVER

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...