REST api don't send account_type attribute
Mischer86
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Nov-14-2018
01:32 AM
Hi, dear community. I have registered a new app in paypal sendbox and give permission to get account_type
I do the next curl request
curl -v -X GET https://api.sandbox.paypal.com/v1/oauth2/token/userinfo?schema=openid \ -H "Content-Type: application/json" \ -H "Authorization: Bearer {my_access_token}"
And I don't receive any account attributes in response:
The fields that I have received:
{ "user_id": "https://www.paypal.com/webapps/auth/identity/user/i-78126398172639182kjhgadkgdsk", "name": "Ivan Ivanov", "middle_name": "", "email": "mi****@gmail.com", "verified": "false", "birthday": "11111111", "locale": "en_US", "payer_id": "5555ddddd", "address": { "postal_code": "111111", "country": "US", "state": "AL", "street1": "NNNN", "street2": "", "city": "NNN" }, "language": "en_US", "verified_account": "false", "birthdate": "1111111", "email_verified": "false" }
What I do wrong? Or paypal REST sdk has some issue with it?
Thanks
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Error: "A boolean is being passed as a fourth parameter to window.open" in Sandbox Environment
- Error: "A boolean is being passed as a fourth parameter to window.open" in REST APIs
- Hosted iFrame modal window with PayPal Checkout enabled does not display in the embedded iFrame in Payflow
- Paypal Express-Service Side Integration in PayPal Payments Standard
- Smart Payment Buttons server integration in PayPal Payments Standard