#ozzy_code
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/1465910204414824641
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, give me a moment to take a look
Do you have a terminal reader ID? should start with tmr_
tmr_GXZBuQZR48P6zB
At which point in your test that the error returned? Are you able to run the app?
Yes I run the app then as i click new payment it comes with that error
does the stripe account have to have app on device activated? I have it activated for my live accounts but not my sandbox do you think thats the issue?
DevKit devices should operate on sandbox, you shouldn't need to activate your acct. Give me some time to look at this
Ok
Could you try restarting your s700 device and connect to the network again?
I'm not sure why we believe the reader offline
ok i switched to a new sandbox thinking maybe that was the proble -> This reader is not configured to operate offline.
just restarting and resseting
still same error
please make sure the reader is registered to the right account that your app is using, for tmr_GXZBuQZR48P6zB its acct_1LdYAwK8SGfgbRnh
hmm..
nothing :/
still the same error?
Yeah
under stripe connectivity for diagnositics on the reader is shows "failed to connect to stripe api" failed to connect to fleed managment
failed, no network
now its connected again let me try again
same error:/
I also noticed that acct_1LdYAwK8SGfgbRnh is not a sandbox account but our docs for DevKits says it only works for Sandboxes https://docs.stripe.com/terminal/features/apps-on-devices/build?terminal-sdk-platform=react-native#set-up-devkit
are you using acct_1LdYAwK8SGfgbRnh in test mode?
gotcha, i can verify that as well
thougts?
π taking over and catching up
To clarify there are 3 steps on AppOnDevice
- Setup: https://docs.stripe.com/terminal/features/apps-on-devices/overview
- Discover and Connect: https://docs.stripe.com/terminal/features/apps-on-devices/build#discover-and-connect-a-reader
- Collect Payment https://docs.stripe.com/terminal/features/apps-on-devices/build#collect-payments
In which method exactly do you get the error, and can you share the full stack trace, or a screenshot/screen recording?
I used this sampe
https://github.com/stripe-samples/terminal-apps-on-devices
The error comes right as soon as i load that app and tries to find terminal
I fixed the connection token error thinking that was it unfortunately it was not
Put a line break here can let' see how e looks like: https://github.com/stripe-samples/terminal-apps-on-devices/blob/main/app/src/main/java/com/stripe/aod/sampleapp/network/ApiClient.kt#L57
You want to inspect e.response()?.errorBody()?.string()
I want to see how the e object looks like when it runs to that line
I believe you got an exception on that line, based on the log in your video
Ok 1 sec
And could you copy the logcat here as a text file?
Hmm the log looks different, what did you change?
Putting breakpoint should change the app behavior
Please copy the full text instead of a screenshot
Thank you. I see it's kinda short. Shouldn't it be longer as this video?
I only see 4 lines. The video has a lot longer text :/
Yes, everything please, from when you start the app to when you got the issue
For example in the video I see ConnectionTokenException
fixed this -> ConnectionTokenException added wrong keys i was crossing my fingers that was the reason lol
So you used a correct key and the ConnectionTokenException disappeared?
Then this is the newest log?
Nah but looking
Invalid device_type: must be one of bbpos_wisepad3, stripe_m2, stripe_s700,
bbpos_chipper2x, bbpos_wisepos_e, verifone_P400, simulated_wisepos_e,
simulated_stripe_s700, or mobile_phone_reader
curious if its because i have a devkit and pullin the wrong code
my code is all git sample nevered changed a thing yet
Where did you change the key btw?
Render
Used the deploy terminal sample they had
Sorry didn't get the last answer. How did you change the key?
I moved it to a sandbox env then I went to render env and updated it to the sk_test and deployed it
Ah I guess on render.yaml file? Okie tks
Yes
Yep okie but this is only backend. Which frontend app are you running? Or you are building yourself?
The Example App inside Stripe Terminal Android SDK?
https://github.com/stripe-samples/terminal-apps-on-devices
running this or trying to
Oops sorry yes overlooked
No mine is working but I setup a while ago. It could depends on the reader
Are you connecting the S700 to your Mac and enabled USB debugging?
Share w me the output of
adb devices
adb shell dumpsys package com.stripe.reader | grep versionName
I am connecting to PC and USB debugging is not I donβt think
adb should be enabled by default. Can you run 2 commands above?
List of devices attached
d59e8b3 device
versionName=2.38.2.0
Ty. Can you go to Stripe Dashboard β Terminal β Devices β Select the S700 β Check for updates ?
did a factory reset and its updating right now lets see
1 of 7 updates maybe this could be it π
nope same error :/
should i redo the whole code or you think itll happen again?
Nah, let try this
adb logcat -s StripeReader:* | grep -i "device_type"
Btw acct_1SuFkWElpE9g8O91 is your new Sandbox account, correct?
Why didn't you use the main account acct_1GO3lzInafRGkEYA btw?
Because it's not sandbox?
Gotchas!
So the Sandbox account will need to be set into the AOD program. Your main account acct_1GO3lzInafRGkEYA is in, but your Sandbox account acct_1SuFkWElpE9g8O91 is not
can i use main acc for devkit?
Nah it's not Sandbox π
damn
and how long does it take to get AOD on sandbox took months to get it on prod
So you want to write to the same Support case which has get your main account acct_1GO3lzInafRGkEYA into this program, to also get your Sandbox account acct_1SuFkWElpE9g8O91 into it
Should be faster
Sorry I can't touch account here. I wish I could
Just tell the same thread that you had it on your main account, now you need to enable in a Sandbox account to develop
you think thats it?
Hopefully. I know that's a hard requirement.
You can reference to this Discord thread to accelerate your thread
now if i have the s700 reader not dev then i can use that on prod and build my app from it?
You will need to pass review before able to install to the production s700 reader
Production device has USB disabled
lol ggs
Don't worry, I think the Sandbox account enable should be fast. Feel free to refer them to this thread as "dev team on Discord suggested it"
@rough pelican -> Please be advised that you can't activate the Terminal via Sandbox as you can only activate it on a live account.
stripe support is saying this
That's wrong. Let's point them exactly to this line https://docs.stripe.com/terminal/features/apps-on-devices/build?terminal-sdk-platform=react-native#set-up-devkit:~:text=Can only operate in sandboxes. and mentioned "dev team suggested to gate the merchant's sandbox account same as their main account"