#Reyansh Sharma

1 messages · Page 1 of 1 (latest)

barren vectorBOT
slender cargo
plucky sierra
#

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?

slender cargo
#

yes you need to check the reader status before calling cancel request

plucky sierra
#

Which status I should exclude, As there are only three I know of.
in_progress
succeeded
failed

slender cargo
#

Try exclude in_progress

plucky sierra
#

😇 Sure thanks, I was trying to stop any action if initiated with the cancel action but it seems it is not possible.

#

So I can only cancel an action if it is not in progress or succeeded.

#

Thanks