Sometimes your shoppers change their mind in mid-purchase, or store staff realize they've made a mistake while the shopper is using the terminal.A cancel request lets either a shopper or store staff abort an in-progress payment. When the cancel request is received before a payment is Approved, the payment is cancelled.Here we explain how you can cancel payments from your POS terminal using the sample request below.To double-check the payment was indeed cancelled, make a request to Get Payment Details. The status of the payment should be failure, in the adyen_response you can optionally look for the errorCondition of the payment.Adyen docs behind this request
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.