Show a Cancellation Page
DocsLegacyLast updated: June 20th 2023, @ 6:44:12 pm
When a buyer cancels a payment, they typically return to the parent page. You can instead use the onCancel
function to show a cancellation page or return to the shopping cart:
paypal.Buttons({
onCancel: function (data) {
// Show a cancel page, or return to cart
}
}).render('#paypal-button-container');