#radu-m_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/1496074647626842122
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey there, looking into your question now
thanks. can you share some timestamps from when this reader didn't go online as expected (i.e. when you reset/restarted the reader)?
on our side it looks like tmr_GXgqagMBEMj50U has been online since this morning
when you say that the device no longer goes online, do you mean it doesn't connect to your local network, or it doesn't connect to the SDK/POS device?
do you have a reconnection flow in place?
https://docs.stripe.com/terminal/payments/connect-reader?terminal-sdk-platform=android&reader-type=internet#automatic-reconnection
Well, the Input field on the #help is too small to explain it thoroughly.
The steps are as follows:
- device offline
- take a transaction offline - need to insert card
- bring device online (connect to Wi-Fi)
- take a transaction while online - need to insert card
The Terminal SDK doesn't go online, even if the offline payment intents get forwarded. Any subsequent transactions, taken with the device connected to Wi-Fi, go through the offline path (user has to insert the card).
This happened ~ 06:58 UTC today. Even now, the device is online, but if I try to put through a transaction, I need to insert the card. The card is not read contactlessly.
Regarding this one:
do you have a reconnection flow in place?
https://docs.stripe.com/terminal/payments/connect-reader?terminal-sdk-platform=android&reader-type=internet#automatic-reconnection
Yes, I do, however in situations of poor / intermittent Wi-Fi connectivity, the users would see a UI saying the reader connection (discovery, connection) is in progress, which looks quite odd.
Hey! Taking over for my colleague. Let me catch up.
This happened ~ 06:58 UTC today. Even now, the device is online, but if I try to put through a transaction, I need to insert the card. The card is not read contactlessly.
Is this your account Id "acct_1Oh9T1H029wHUS4e" that faced this issue today ?
yes, that's the platform account ID
Thx.
Not seeing any error relating to the offline payments..
Can you try migrating to the SDK 5 and see if you reproduce the same issue ?
https://docs.stripe.com/terminal/references/sdk-migration-guide?terminal-sdk-platform=ios#migrate-to-version-500
I see that you've migrated your reader's version to the latest version but you are still using an old sdk
Well, the reader version is outside of our control , that's controlled by Stripe.
But yes, we're using Stripe Terminal v4.7.3 on our Android devices.
We already migrated to v5.2 on a separate branch, but that hasn't been released yet.
I was working on a hotfix on our Production devices, who run v2.40.1.0 reader firmware, with Stripe Terminal SDK v4.7.3.
Well, there aren't any errors that I could see, it's just the SDK doesn't go online and always asks for the user to insert the card instead of taking the transaction contactlessly
As youare using an Android integration, there is a coupled link between the terminal version and the SDK you are using.
We usually recommend the server driven integration to bypass the connectivity issue.
Well, there aren't any errors that I could see, it's just the SDK doesn't go online and always asks for the user to insert the card instead of taking the transaction contactlessly
Yeah I understand. You said that you have a branch using SDK 5.2, are you seeing the same issue or not ?
Now I see the device SDK went online, rougly 2h after actually connecting the device to Wi-Fi
using what SDK ? 4 or 5 ?
with 4
Can you please try doing the test with 5.2 ?
It'll take some time for me to test, can I come back on this chat in about 30 minutes?
Yes sure.
Also can you try to force the connection to the reader when you are sure that the reader is back online via your android app by re-calling this :
Terminal.getInstance().connectReader(
reader,
config,
object : ReaderCallback {
override fun onSuccess(reader: Reader) {
// Placeholder for handling successful operation
}
override fun onFailure(e: TerminalException) {
// Placeholder for handling exception
}
}
)
As far as I recall, you need to disconnect the reader first, then run discovery and then connect reader.
Your reader got disconnected here and then it went online, right ?
No, the reader doesn't get disconnected. It stays offline.
We just tested on a Production device, running v2.40.1.0, and the SDK comes online immediately after the device comes online (connected to Wi-Fi).
So to me, this looks like a regression in v2.41.2.0
No, the reader doesn't get disconnected. It stays offline.
Ah sorry I got confused then (you said your run off/on the wifi)
I understand this but when you say "SDK" is it the reader's SDK or your mobile app's SDK ?
That's why I have a doubt about the mobile app's stripe SDK version, which is old.
the mobile app SDK.
when you say the "reader SDK", I assume you refer to the "Reader version" in the device diagnostics:
yes yes which is 2.41.2.
OK, I am now building the app with the upgrade to Stripe Terminal SDK v5.3.0. Will let you know in about 5 minutes whether this issue is still reproducible.