#mauliks_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/1233402323380736211
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- mauliks_code, 1 day ago, 42 messages
- mauliks_code, 1 day ago, 56 messages
- mauliks_code, 4 days ago, 20 messages
- mauliks_api, 6 days ago, 37 messages
What do you mean by any default UI? What are you referring to exactly?
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
yes iOS platform
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?
correct
As far as I know, you'd need to build the UI components yourself
๐ฆ
See https://docs.stripe.com/terminal/quickstart?reader=m2&platform=ios&client=swift for our quickstart
It shows a basic example of managing the UI messages
Sure
how can I implement auto connect reader? when my app starts and reader is ON
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
thing is whenever I restart my app, reader gets disconnected, SCPTerminal.shared.connectedReader gives me nil
Yeah if you restart it, you'll need to reconnect
I think you want to implement ^
Really recommend reading all our docs around this
[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
ok
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.
Thanks for this