#Reyansh Sharma
1 messages · Page 1 of 1 (latest)
Hi
Can you share more context please about this. Are you having this error following this guide:
https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=server-driven#payment-cancellation
Yes
From the note:
It’s not possible to cancel a payment in the middle of an authorization. If a customer has already presented their card to pay on the reader, you have to wait for processing to complete. An authorization normally takes a few seconds to complete.
Do we need to check the reader.action.status if it in in progress? then don't call cancel action?
yes you need to check the reader status before calling cancel request
Which status I should exclude, As there are only three I know of.
in_progress
succeeded
failed
Try exclude in_progress