#ky_code

1 messages ยท Page 1 of 1 (latest)

twilit radishBOT
#

๐Ÿ‘‹ 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/1396948151377596710

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

drifting star
#

Hello thanks for the info, is any error raised when you make the call with the OBO param? Or does it just seem to hang and not return?

dim barn
#

Hi Pompey

#

let me past the log

(NOBRIDGE) LOG [Stripe terminal]: didChangeConnectionStatus connecting
(NOBRIDGE) LOG [Stripe terminal]: didChangeOfflineStatus {"reader": undefined, "sdk": {"networkStatus": "online", "offlinePaymentAmountsByCurrency": {}, "offlinePaymentsCount": 0}}
(NOBRIDGE) LOG [Stripe terminal]: didChangeConnectionStatus notConnected

drifting star
#

Interesting, thank you for those log lines. Also, is this you building this functionality for the first time or was your POS previously able to connect to these terminals while specifying OBO and this broke recently?

dim barn
#

i am currently building that functionality, we werent using the OBO, but since with OBO it shows the terms and condition modal we need that implementation

#

so without OBO param, it works with any org

drifting star
#

Not finding much on this error but I am still looking. One quick thing, that code looks to be calling a wrapper function, can you send the code for that wrapper function here? I am guessing it just passes the params you specify directly to our connectReader method but it could be helpful to double check

dim barn
#

sure

drifting star
#

connectReader: stripeConnectReader
Ah gotcha so it is just an alias of our method more or less

dim barn
#

yes

twilit radishBOT
drifting star
#

Still looking into this, I haven't found anything documented saying you should have coded this differently and I'm not seeing open issues on our github repo for this SDK. Trying to reproduce myself as well

dim barn
#

ok, thank you

drifting star
#

Running in to problems with my RN setup but am still working on this. Out of curiosity, have you tried this app on Android and does it see the same behvior?

dim barn
#

hmm no, we are focused on iOS first

drifting star
#

I'm still having being able to run my test app on a physical device but this same code works for me in the iOS simulator. Trying to think of things to check here. What version of the RN SDK are you using?

dim barn
#

"@stripe/stripe-terminal-react-native": "^0.0.1-beta.25",

#

this one?

drifting star
#

Yep yep, that is the latest one. And have you seen this on the simulator, physical devices, or both?
Also apologies this is running long, we can move this to a ticket if you need to step out and I can followup with whether I've been abel to reproduce on a physical device. If I can, it should be pretty straightfoward to escalate to the eng team. If I can't reproduce I'm trying to think of how best to debug this after

dim barn
#

physical device only

#

no problem
we are trying to figure this out for days already

#

I will try on a simulator as well

drifting star
#

One other thing that could be helpful: can you try hard-coding a connected account's ID to the on_behalf_of parameter when calling the connect method? That can rule out this being an issue with the session hook that is being used to get that info. I doubt that that is the issue as it looks like you are printing out the ID right before trying to connect, but it can always help to rule things out

dim barn
#

can i use the account that i sent u?

#

but i have already tried that

drifting star
#

Yep should be able to, looks like the account is connected correctly to the platform that owns that location.

twilit radishBOT
dim barn
#

thats funny , bc now it is connecting, but that modal is not showing uo

#

up

drifting star
#

Interesting? With it being hard coded it is connecting properly on the physical device?

dim barn
#

yes, but i put back my code. and it worked too

#

how come

#

xD

#

oh no wait

#

i added simulated true

#

thats why

#

yea, didnt work

#

sorry about that xD

drifting star
#

My hopes were so high! I think at this point it may be best to move this to a case, I'm making a project that uses your hook and will try to reproduce this issue with a colleague that knows more about this SDK.

twilit radishBOT
#

Hello @dim barn, we have sent you a direct message, please check it at https://discord.com/channels/@me/1396980799152193626

  • ๐Ÿ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
drifting star
#

Can you let me know when you've filled out the above? I can grab the case it creates and get back to you from there

dim barn
#

yes I will