#dom_code

1 messages ¡ Page 1 of 1 (latest)

eager lagoonBOT
#

👋 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/1343500045919719495

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

covert merlin
#

Hi there, I believe you should just request for location permission if the customer has not yet granted the permission for your app. Once granted, the Stripe terminal SDk will retrieve the device location automatically

quartz yoke
#

Hi Jack, We initialise different stripe accounts depending on the location of the user though so this is something we need to handle ourselves. I am just wondering what would happen if you try and initialise with an undefined secret. Does the wrapper allow its self to be reinitialised if we updated the location and provide it with the a valid secret?

covert merlin
#

I believe StripeTerminalProviderWrapper is your own wrapper. If location info is critical to your app, you should only use this wrapper when the location info is available.

quartz yoke
#

Sorry, wrong terminology I meant StripeTerminalProvider

covert merlin
#

Are you asking if you can change the props that passed to the StripeTerminalProvider ?

quartz yoke
#

Yes. I am asking if the tokenProvider passed a function which initially returns undefined . Would StipeTerminalProvider be able to become initialised if a few seconds later the tokenProvider passed a valid function which returned the correct secret for the StripeTerminalProvider

eager lagoonBOT
zealous juniper
#

hi! I'm taking over this thread.

quartz yoke
#

Hi Soma

zealous juniper
#

I'm not sure. Is this something you could try on your end?