开发者

How to get a user's PayPal account using the PayPal API?

My application needs to pay some users regularly and automatically via PayPal.

I'm planning to do this using Adaptive Payments APIs. To use the API I need to know the user's PayPal account.

Of course I can simply ask the user for his account name, but without validation it's quite possible that he will make开发者_如何学Python a typo or some other mistake and his money will end up in someone else's account.

So, I'd like - ideally - for the user to go to PayPal, authorize there, and let PayPal return me his authenticated account ID.

How can I do that?


PayPal Access will do what you want: https://www.x.com/developers/x.commerce/products/paypal-access


You can do it the way an automated gasoline pump, or Paypal itself, does it: Try to authorize for a $1 charge, or a very small credit (2 cents or so).

If it works, you can then pass along the full charge.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜