从贝宝获取详细信息?
是否可以让用户通过 paypal 登录我的网站并让网站检索用户的 paypal 邮政地址?
Is it possible to have a user sign into mywebsite via paypal and have the website retrieve the user's paypal postal address?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有可能进行 PayPal 集成。请参阅他们的 PayPal SOAP API 概述< /a>.我看到它主要用于信用卡验证和收费。
还有一些替代方案可以让用户登录 PayPal,但您必须先将他们重定向到 PayPal。有多种方法可以获取他们在购买时提供的地址,但您无法通过您的网站在 PayPal 上验证它们。
PayPal 付款网站Pro允许一些附加功能。
但是似乎您不能让用户登录并仅检索他们的信息而不执行购买。
There are possibilites to do PayPal integrations. See their PayPal SOAP API Overview. I've mainly seen this being used for validating and charging credit cards.
And there are alternatives that lets the users login to paypal but you have to re-direct them to paypal first. There are ways to get the adress that they provided in the purchase but you cannot authenticate them on PayPal via your site.
The Website PayPal Payments Pro allows for some additional features.
But it seems you cannot let the users login and just retreiv their information without performing a purchase.
我刚刚看到这个问题,但是可以在不强迫人们购买的情况下获取邮政地址。您只需使用高级个人数据 API 端点即可。步骤如下:
1) 使用权限 API 获取用户的访问令牌。请务必请求高级用户数据权限。
2) 获得令牌后,使用从 oauth 令牌获得的签名构建高级个人数据请求。这应该包括地址信息。
I just saw this question, but it is possible to get the postal address without forcing people to make a purchase. You simply need to use the Advanced Personal Data API endpoint. The steps are as follows:
1) Use the permissions API to get an access token for your user. Be sure to ask for the Advanced User Data permission.
2) Once you've got the token, build an advanced personal data request using the signature you'll get from the oauth token. This should include address information.