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=true&accountStatus=BUSINESS_ACCOUNT&consentStatus=true&productIntentID=addipmt&isEmailConfirmed=true&returnMessage=To%20start%20accepting%20payments,%20please%20log%20in%20to%20PayPal%20and%20finish%20signing%20up. 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!
... View more