Change Redirect URL in Case of Payment Cancellation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey there,
I use the Paypal Payment solution in my Woocommerce Webshop. By now, in case a customer wants to pay via Paypal, he gets redirected from the checkout page to the paypal page so that he can do his payment. So far so good. However, when the customer then cancel his payment on Paypal, he gets redirected to the "Thank you" Page of my webshop. But in Case of payment cancellation, I would prefer the customer to be redirected to the Checkout page.
Is there a way to change this redirection?
Many thanks for your help!
- Labels:
-
PayPal Payments Advanced
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try this code, that is what am using with my system
paypal.Buttons({
onCancel: function (data) {
// Show a cancel page, or return to cart
}
}).render('#paypal-button-container');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- subscription_id has disappeared 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)
- Redirecting customers to PayPal for payment in PayPal Payments Standard
- PayPal Redirection Issue After Successful Payment in Photobooth Integration in Sandbox Environment
- Paypal Error on WooCommerce for credit card payments in Argentina in REST APIs