Redirecting from our site to PayPal URL to approve a setup token sometimes gives an error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Any idea of what can be wrong, please?

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- CHECKOUT.ORDER.APPROVED webhook event not triggered if payment_source is passed in in REST APIs
- Why does PayPal redirect to different pages (login vs credit card form) depending on browser mode? in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- Paypal buttons and redirects in PayPal Payments Standard
- Redirecting customers to PayPal for payment in PayPal Payments Standard
- PayPal Redirection Issue After Successful Payment in Photobooth Integration in Sandbox Environment