简体   繁体   English

Paypal REST API:如何在不使用身份 API 的情况下获取经过身份验证的用户电子邮件/姓名?

[英]Paypal REST API: How can I get authenticated users email/name without using the Identity API?

So it seems like https://developer.paypal.com/docs/api/identity/v1/ only works if you're using Connect with Paypal API.因此,似乎https://developer.paypal.com/docs/api/identity/v1/仅在您使用 Connect with Paypal API 时才有效。 This isn't an option at the moment.这不是目前的选择。 I have a Paypal widget within my dashboard and users can add multiple accounts.我的仪表板中有一个 Paypal 小部件,用户可以添加多个帐户。 I need an email or name to help my users distinguish this account from their others.我需要一个电子邮件或姓名来帮助我的用户将此帐户与其他帐户区分开来。 I tried using /userinfo but I only received the user_id property.我尝试使用 /userinfo 但我只收到 user_id 属性。

Is there something I can do differently to get email/name from this endpoint or is there somewhere else I can get this data?有什么我可以做的不同的事情来从这个端点获取电子邮件/姓名,或者我可以在其他地方获取这些数据吗? This workflow is best for users but if needed I can have them manually enter the info on my application此工作流程最适合用户,但如果需要,我可以让他们在我的应用程序中手动输入信息

What ended up working for me was making sure all permissions per enabled and I added my return URL.最终对我有用的是确保启用所有权限并添加我的返回 URL。 I was doing this to setup connect with paypal button but then tried a postman request and realized I could now get all user info needed我这样做是为了设置与贝宝按钮的连接,但随后尝试了邮递员请求并意识到我现在可以获得所需的所有用户信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM