#harun_terminal-offline

1 messages · Page 1 of 1 (latest)

buoyant cragBOT
#

👋 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/1440351676602126468

📝 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.

dreamy dew
#

We integrated the Android Terminal Stripe SDK, connecting to S700 and M2 devices

#

Please let me know if you need anymore details

high patrol
#

S700 is connected through the internet while M2 is connected through bluetooth. Do you face the same issue for both types of readers?

dreamy dew
#

Yes

#

We are facing a problem where in the prolonged internet outage, our customers expect to operate in FORCE_OFFLINE mode for a long time. But eventually for some reason, the connection token is getting expired and payments are not going through anymore

#
  1. Why is the connection token allowed to expire when the device is offline, despite operating in hybrid/offline mode?
  2. How can we ensure the device maintains connection with the POS, regardless of restarts, network changes, or device sleep?
  3. Is there a recommended approach for handling long-term offline scenarios without requiring manual intervention?
  4. How can we guarantee payment continuity in both PREFER_ONLINE and FORCE_OFFLINE modes during prolonged internet outages?

There are my questions actually

high patrol
#
  1. Connection token is short-lived, so it'll expire regardless. This is mentioned in: https://docs.stripe.com/api/terminal/connection_tokens/create?api-version=2025-10-29.preview&rds=1
  2. New connection token will be generated by SDK once it attempts to connect again.
  3. Are you using Cloudflare DNS? Since Cloudflare is down at the moment, it could cause the network outside of Stripe control if your DNS runs on Cloudflare
  4. When the terminal is in offliine mode, there shouldn't be connection token required as mentioned in https://docs.stripe.com/terminal/features/operate-offline/overview?reader-type=internet. It seems that your terminal isn't activated as offline mode in such situation

Accept payments when you have internet connectivity issues.

buoyant cragBOT
dreamy dew
#

Ok

#

This issue isn’t related to Cloudflare. Last week, one of our customers experienced an internet outage for a couple of days. The system continued to operate in office mode, and payments were initially successful. However, after some time, the connection token expired, and payments stopped working. Is there a way to manage this from the implementation side?

woven grove
#

hi there, taking over this thread as my colleague had to step away, one moment while I catch up

dreamy dew
#

This is how it is mentioned in the stripe documentaion, If you see the 4th point, the SDK might still attempt to call connection token function.

woven grove
dreamy dew
#

Yes I got an error\

#

The system did few payments offline, and then it tried to forward it, the sdk got this error

#

CONNECTION_TOKEN_PROVIDER_ERROR_WHILE_FORWARDING

#

did you get any error message when the payments started failing? also can you describe what you mean by "office mode"?

I've set the paymentPreference to FORCE_OFFLINE

dreamy dew
#

The store and forward is fully controlled by the stripe SDK

#

We can only get the count of payment intents forwarded

woven grove
#

I'm trying to find other instances of this error, was there anything in addition to the CONNECTION_TOKEN_PROVIDER_ERROR_WHILE_FORWARDING type? a message, a stack trace, line number that it occurred on?

dreamy dew
#

This happened inside the SDK only, we don't have any stackstrace of it

#

There might be a possiblity that the app got closed and reopened and the SDK got reinitialized

#

And when the app was reopened, there's no internet connected to the device

#

I'm stepping out of dinner for little bit, I'll be back in 15 mins, Can you please not close the thread?

dreamy dew
#

I’m back

high patrol
#

How do you determine when to set FORCE_OFFLINE in your integration? Could you share the code which you set the offlineBehavior as FORCE_OFFLINE?

dreamy dew
#

It’s based on restaurant preference

#

I’ll share the code

buoyant cragBOT
glad urchin
#

harun_terminal-offline