Redirecting from our site to PayPal URL to approve a setup token sometimes gives an error

ibrahim-mohamme
New Community Member

I'm working on integrating PayPal APIs with our system.

After calling /v3/vault/setup-tokens API, we get a URL that will be used to redirect the user so he can approve the later payments from our side without his interaction.
When we redirect the user to such URL (ex. https://sandbox.paypal.com/agreements/approve?approval_session_id=6JF99536NV246270X) it sometimes shows an error saying "Sorry, something went wrong. Please try again."
The error page URL looks like this https://sandbox.paypal.com/checkoutweb/genericError?code=REVGQVVMVA%3D%3D&country.x=US&locale.x=en_U... .


This doesn't happen all the time. Sometimes it works and sometimes gives that error especially when the user is not logged in to PayPal sandbox and he needs to log in. After logging in, it shows that error.

paypal-error.png

Any idea of what can be wrong, please?

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.