Marketplaces - Connected Onboarding - Access Token

andco
Contributor
Contributor

 

Hi!

I'm strugling trying to get the access token for connected partners using the referral API. This is basically what we do:

 

  1. We onlboard users with the partners referral API. https://developer.paypal.com/docs/marketplaces/connected/integration-guide/
  2. 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....
  3. 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
  4. 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!

Login to Me Too
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.