#mauliks_code

1 messages ยท Page 1 of 1 (latest)

sweet gardenBOT
#

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

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

violet lintelBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

fathom pendant
#

What do you mean by any default UI? What are you referring to exactly?

undone wave
#

ok I am integrating M2 reader with my app via SDK. now when I start collecting payment, didRequestReaderInput method gets called and app should display message on the screen for the end user

#

so I am wondering if there is any UI class from stripe to handle this? Like I just present on the screen and all these stuff handles automatically handled by stripe sdk

fathom pendant
#

Is this an ios app?

#

What platform?

undone wave
#

yes iOS platform

fathom pendant
#

Gotcha. And you're saying that currently your app works, but you just don't have a UI indicating to the customer exactly what's happening?

undone wave
#

correct

fathom pendant
#

As far as I know, you'd need to build the UI components yourself

undone wave
#

๐Ÿ˜ฆ

fathom pendant
#

It shows a basic example of managing the UI messages

undone wave
#

sure

#

Can I ask another thing?

fathom pendant
#

Sure

undone wave
#

how can I implement auto connect reader? when my app starts and reader is ON

fathom pendant
#

It won't automatically connect. You need to write code to call discoverReaders and then connect to the reader. However, once connected, the reader stays connected to your iOS or Android device while in standby mode and automatically exits standby mode when you resume activity. See: https://docs.stripe.com/terminal/payments/setup-reader/stripe-m2

undone wave
#

thing is whenever I restart my app, reader gets disconnected, SCPTerminal.shared.connectedReader gives me nil

fathom pendant
#

Yeah if you restart it, you'll need to reconnect

undone wave
#

๐Ÿ˜ฆ

#

1 more thing need to ask

fathom pendant
#

I think you want to implement ^

#

Really recommend reading all our docs around this

undone wave
#

[SCPTerminal setTokenProvider:[StripeAPIClient shared]];

this is how I am getting the token from my server. But stripe SDK will get token whenever they want. Is there any way so I can ask SDK to get token now? Thing is I change test or live keys on my server so I need to inform my app that there is changes in the API keys please get new token

fathom pendant
#

Asking colleague

#

Will get back to you

undone wave
#

ok

fathom pendant
#

Ok colleague said this won't work like you expect, even if you could force the provider to be called. If you switch the secret key, the app's publishable key would no longer match. You'd need to re-init the SDk with the other PK.

undone wave
#

thats the thing here

#

means need to restart the app right?