Marketplaces - Connected Onboarding - Access Token
andco
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Dec-13-2017
12:35 PM
Hi!
I'm strugling trying to get the access token for connected partners using the referral API. This is basically what we do:
- We onlboard users with the partners referral API. https://developer.paypal.com/docs/marketplaces/connected/integration-guide/
- At the end, the user approves the connection and it's redirected to our site.
The redirect url looks like: https://somewhere.com/paypalmerchantId=1513194746836&merchantIdInPayPal=XXXXXXX&permissionsGranted=t.... - At this point, as I understand we need to grab the access token for the given connection.
We were instructed by PayPal to use /oauth2/token with grant_type=client_credentials and target_client_id=CONNECTED MERCHANT ID - But, it does work. We get invalid_client error.
If we do not pass in target_client_id, it works. But, I think the token is not for the connected merchant but for our facilitator account.
So, I need to know how to get the access token for the connected account. This will later be used to create and execute payments, agreements, etc.
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.