invalid_client

samuelrl
New Community Member

Am working with creating a 'Future Payments Server-Side Integration', I already implemt the client-side in the android app and working fine to get the Authorization Code but the problem is when I try to get the refresh token I always get 401. Im following the documentation in this url https://github.com/paypal/PayPal-Android-SDK/blob/master/docs/future_payments_server.md#create-a-pay...

 

the request is am not sure about the -H Authorization, I put the clientId, I have tested with the secret. but nothing work.

curl 'https://api.paypal.com/v1/oauth2/token' \
    -H "Content-Type: application/x-www-form-urlencoded" \
    -H "Authorization: Basic QWZV...==" \
    -d 'grant_type=authorization_code&response_type=token&redirect_uri=urn:ietf:wg:oauth:2.0:oob&code=EBYhRW3ncivudQn8UopLp4A28...'

 

Login to Me Too
1 REPLY 1

Quandary
Advisor
Advisor

You may want to redirect your question to the Merchant Tech Support community.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.