Add the onCancel
function to the JavaScript that renders the PayPal buttons to show a cancellation page when a payer cancels a payment:
Show cancellation page
DocsCurrentADVANCED
Last updated: Apr 19th, 11:28pm
Show a page to your payers to confirm that the payment was cancelled.
Know before you code
Advanced Checkout
RequiredComplete the steps in Get started to get your sandbox account login information and access token from the Developer Dashboard.
This feature modifies an existing Checkout integration and uses the following:
Orders REST API - Create order and Update order
Explore PayPal APIs with Postman
OptionalYou can use Postman to explore and test PayPal APIs. Learn more in our Postman guide.