Grant Permission API is redirecting to dashboard and not back to my site

nguyenpham
New Community Member

Hi All,

 

I have been using GrantPermission API and it's working fine until now. But today, when I try to use it, I always get redirected to merchant dashboard and cannot return back to the site

 

Request

curl https://svcs.sandbox.paypal.com/Permissions/RequestPermissions \
-s \
--insecure \
-H "X-PAYPAL-SECURITY-USERID: <user id>" \
-H "X-PAYPAL-SECURITY-PASSWORD: <password>" \
-H "X-PAYPAL-SECURITY-SIGNATURE: <signature>" \
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV" \
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV" \
-H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" \
-d requestEnvelope.errorLanguage=en_US \
-d scope=EXPRESS_CHECKOUT \
-d callback={url}

 

Then I call the Paypal site

https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_grant-permission&amp;request_token=<token>

 

But then I get redirected to this page https://www.sandbox.paypal.com/mep/dashboard ... I have checked the network and the response status for the url (https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_grant-permission&amp;request_token=<token>) is 301 Moved Permanently

 

Please give me any guidance if there is some change in the url to call after receiving the token

 

Thanks much

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.