Generate Token in Node js
ListMonger
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
May-21-2021
07:54 AM
Thanks in advance, Hello Guys can any one help me how to generate token in node js. Any specific sdk or api exist from PayPal. Please help me regard on this
Labels:
Login to Me Too
- Labels:
-
Payments REST APIs
1 REPLY 1
flyingkei
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May-21-2021
09:38 AM
You can generate a token by calling the oauth2 api:
https://api.sandbox.paypal.com/v1/oauth2/token
https://stackoverflow.com/questions/28361205/how-to-retrieve-paypal-rest-api-access-token-using-node
Take the token from the response and add it as a Bearer header in the next request.
https://stackoverflow.com/questions/62736676/how-do-i-set-authorization-bearer-header-with-nodejs
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
- When clicking on a payment button generates error: Unexpected token ... in PayPal Payments Standard
- How to retrieve merchant integration status through the API? in REST APIs
- Why can't I open my referral URL? in Sandbox Environment
- PayPal API 403 PERMISSION_DENIED on get order and capture order in REST APIs
- Passed sandbox development test_stuck in real account payment test_ in REST APIs