#kongqingtian_error
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/1479309054403940483
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey! Could you give me the Serial number of you S700? It should have the prefix STRxxxx
SDR70Z1C430002001
On our end, we are seeing that your terminal reader is surfacing the error: com.stripe.stripeterminal.external.models.TerminalException: Account id must not be null, connect to reader while online.
Are you passing in the account ID correctly?
hi @warped bronze , could you help to check again? we did some update just now, but staill get the same error.
Hmm, are you using a POS device in your terminal flow as well?
It seems to be an overall network issue, could you go through this troubleshooting guide here: https://docs.stripe.com/terminal/network-requirements#smart-readers and follow the troubleshooting steps
One important call out if you have a POS device as well:
When using one of our Terminal SDKs, your point of sale device and the smart reader also communicate directly with each other over your local network.
we don't have POS device, just upload the apk into stripe and installed. using reader S700 directly.
ah, the reader type is s700 devKit
You mentioned that the reader was successfully registered [0] before the next step
could you send me the reader ID? it should have the prefix tmr_xxx
Also, could you grant me access to view your dashboard? it might help witht heinvestigation
Hello @sullen bear, we have sent you a direct message, please check it at https://discord.com/channels/@me/1479329405166686319
- ๐ The message has instructions on how to grant read and write access to your Stripe Dashboard for our Developer Support team, in order to help you more effectively.
the reader id is tmr_GYohsgd4QHsho0,
and we have granted the access to you leh. pls help to check the issue ha. Thanks very much!~
Hi there, taking over and looking at your reader
Is this error occured via the Discover step?
And have you been able to directly wire-connect your Android Studio w the S700 Devkit and build your app? (Before uploading to Stripe App)
no ah, only did upload. because the devKit is not with us, it's overseas
oh sorry, currently we are using
val reader = Terminal.getInstance().easyConnect(config)
according the demo https://github.com/stripe-samples/terminal-apps-on-devices,
so i am not sure it failed at discover or connect reader.
Hmm that means you have no debug log on the device
yup, that is headache-inducing. Can you find any issue from for stripe account?
Our log is suggesting the app is not configured the Merchant Id well (the acct_xxx)
But itโs hard to see without the full debug log at the method calling time
Could you show us how to config the Merchant id?
Are you using Android?
yes, using Android studio
Okie, which backend you have configured?
In the Github above, the Render app section
we are using flutter to build the APP, and using native for discover/connect reader section
do you mean that?
Yes but you will need an backend anyway
ah, we have a server BE ah, using nestjs
Okie, did you configure the Stripe API Key there?
BE using aws lambda, have Stripe API Key configured. correct
On your backend log, do you notice the Create Token request on this part? https://github.com/stripe-samples/terminal-apps-on-devices/blob/main/app/src/main/java/com/stripe/aod/sampleapp/network/ApiClient.kt#L34
Emm, you mean create connection token part?
Yes
we are using this provider to call BE api to get connection token, but i checked log, seems that the API is not called.
sdk is not triggered to call BE API to get connection token.
Do you have this line on ViewModel? https://github.com/stripe-samples/terminal-apps-on-devices/blob/e129a54b98271e58c32b189c48c4461e51f620e6/app/src/main/java/com/stripe/aod/sampleapp/model/MainViewModel.kt#L30
Hmm why don't you use the class TokenProvider here? But instead define another instance of ConnectionTokenProvider like that?