#harun-_unexpected
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/1440614879567548497
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- harun_terminal-offline, 12 hours ago, 35 messages
- harun-_unexpected, 17 hours ago, 6 messages
hi there!
Hey
My previous thread was closed by you guys. Can you please refer to this thread
So I'm facing a problem in FORCE_OFFLINE mode integrating the Stripe terminal SDK where the Android POS device goes offline for a long period of time and the connection token getting expired
looking into this
There are the files related to the TokenProvider and PaymentPreference at @shy turret was asking me about
do you get the error when trying to process the payments while offline, or the error happens once the devices goes back online and try to send the stored payments to Stripe?
Both are happening, the problem is it is unexpected and the customer operations are at halt after this happened
What we noticed most of the time is, when the system is idle for a long time, this happens
while you are offline, did you somehow change the connectionToken? because you should keep using the last valid connectionToken while offline.
Yeah correct, we are using the cached connection token, but it is getting expired unexpectedly while the device is in offiline
The Intergration have no control over changing or modifying the connection token
and when the device goes back online, do you fetch a new token as shown here? https://docs.stripe.com/terminal/features/operate-offline/overview?reader-type=bluetooth#forward-stored-payments-when-online
Yes, we do that
Once the device comes back online and the SDK fetches the connection token, everything works normally
then I'm confused. when exactly do you get the error "CONNECTION_TOKEN_PROVIDER_ERROR_WHILE_FORWARDING"?
In this specific case, I'll help you with the timelines,
- POS were doing offline payments. Every payment went successfully.
- POS was not operational(idle) for a very long time.(6 to 8 hours)
- When the user again started using the system, we got a log saying that CONNECTION_TOKEN_PROVIDER_ERROR_WHILE_FORWARDING.
Please let me know if that helps
so there's no issue with offline payments? the actual issue is that after a long idle time, payments fail with CONNECTION_TOKEN_PROVIDER_ERROR_WHILE_FORWARDING?