Search code examples
paypalexpress-checkout

How do i cancel a PayPal (Express Checkout) transaction?


I have an application that uses Express Checkout to process payments.

I need some way to cancel a transaction after calling SetExpressCheckout (and having the user fill out his details on paypal's page) and before i actually complete it with DoExpressCheckoutPayment.

I can't find the right way to do it in paypal documentation, do i just let it time out or do i need to do some API call?


Solution

  • You just let it time out. If you haven't called DoExpressCheckoutPayment yet, no action has yet taken place.
    The token automatically expires after three hours.