#hendie_api
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/1328610088461664261
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Looking into your query!
Hi there, you can read this doc to know more about how to handle/prevent reader offline errorhttps://docs.stripe.com/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#reader-offline
I'll also recommend you to check your network and see if it fulfills the requirements https://docs.stripe.com/terminal/network-requirements#smart-readers
network is fine, that's not the problem. Reading your first recommended doc
this statement: "A reader is considered offline if Stripe hasn’t received any signal from that reader in the past 2 minutes." Does that mean that a terminal sitting idle will still send regular signals to Stripe? Even when the screen is dimmed, and the terminal looks "asleep" ?
Yes you are right.
that's weird. I do a successful transaction. Then allow the terminal to go into sleep mode (I assume, because after a while the screen goes blank). Then the next transaction gives the offline message.
Can you share with me the PaymentIntent ID, and the terminal reader's serial number?
would you not be able to get the pi from the request id I provided?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
S/N WSC513128044371
Thanks, let me take a look
interesting it says it last heard from the reader 8 mins ago
looks like it stopped signalling
I don't see any logs from this reader between 2025-01-14 06:06:56 UTC to 2025-01-14 06:10:00 UTC
And it's latest status is "offline"
well, I did not switch it off since the last transactions
Can I suggest you to check the network and make sure it's connected to a working network?
https://docs.stripe.com/terminal/network-requirements#troubleshooting here's an useful troubleshooting guide that you can use
thx checking
so since the screen was blank, I touched the power button (not sure if there is another way of "waking" the reader, and now it says online again.
the point is we don't want to expect the merchant to have to do that before each transaction, just in case the reader went to sleep
apparently if you use the js sdk, the reader is awakened automatically
my front-end engineer alerted me to this difference in operation
I notice in that network doc: "Terminal readers must be assigned a private IP address." Surely that's not possible if the reader connects directly to the Internet?
In the latter case it is the Internet provider that assigns the IP address, I have no control over that
The internet provider assgin IP address to your router, the terminal reader obtains a private IP address from your router or switch, depending on your network setup
https://docs.stripe.com/terminal/network-requirements#troubleshooting I'd recommend you work with your engineer to troubleshoot your netwokr first.
I notice this too: "If your network limits the duration of network sessions (including idle sessions), the minimum session length for Terminal readers must be at least an entire workday."
I guess those requirements can be set if you have an Internet router/switch, but I am connecting via my phone hotspot, and I have less control over that.
But yeah, thanks, this helps
Still there seems to be a difference if you're using the js sdk
I see, I'm not sure the phone hotspot can provide a network session that can last for a day, and I'll recommend to use a more stable network.
One of the reasons we were moving to server-driven is to have LESS networking issues to worry over. Most of out support issues with Stripe terminals at the moment (using js sdk) is getting the LAN setup done consistently with the merchants. We were hoping that if the terminal connects to the Internet directly (albeit via a router) that there would be less hassles. Now it seems there will still be router configs needed to make it work!
Yes you are right, a stable network connection is still needed regardless whether you are using server-driven integraiton or Javascript API.
one last question
do you know whether the js sdk employs some sort of keep-alive signalling to readers on the network. I am still curious about why using the js sdk does not need the reader to be manually "woken".
To my best knowledge, the reader will always send "heartbeat" signals to Stripe regardless what integration you use.