#twafiq_terminal-operations-check
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Hello! It sounds like you need to perform a check to confirm the current operation is complete before starting a new one.
It could be any operation that's currently in progress.
how do i check for the operation completion/ make it sequential no parallelism and avoid overlapping
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.
so should i just block the operation if this happens
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.
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
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.
ok thansk