#twafiq_terminal-operations-check

1 messages ยท Page 1 of 1 (latest)

stable skyBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1324508277995864094

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

upbeat flame
#

Hello! It sounds like you need to perform a check to confirm the current operation is complete before starting a new one.

west plaza
#

which operation is this referring to?

#

the collection operation?

upbeat flame
#

It could be any operation that's currently in progress.

west plaza
#

how do i check for the operation completion/ make it sequential no parallelism and avoid overlapping

upbeat flame
#

I don't think there's a way you can guarantee there won't be an operation in progress since your customer may interact with the reader and begin an operation at any time. Getting the error you mentioned in your original message is how you can tell an operation is in progress.

west plaza
#

so should i just block the operation if this happens

upbeat flame
#

You could block or you could retry after a short delay, it depends on what works best for your integration.

#

I will say that it might be better to wait and start the Terminal payment process until after you know the final amount, rather than updating it a lot before that.

west plaza
#

well the thing is, this is supposed to be a semi-attended payment kiosk, where it is always ready to collect payment but can be changed at any time by the user

upbeat flame
#

Right, but you can handle changes to the amount on your end, in your UI, and then when the amount is finalized only then start the Terminal payment collection process.

west plaza
#

ok thansk

stable skyBOT