#tree-of-life_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/1339659985520431186
๐ 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.
- tree-of-life_code, 2 hours ago, 47 messages
HI ๐
As the error states, you cannot initialize multiple embedded checkout instances. What are you trying to do?
Hello! I'm taking over and catching up...
Not sure what you mean by getting back the old one? It sounds like you're trying to initialize two different instances of embedded Checkout on the same page, which isn't allowed. Can you explain what you're trying to build and why you're initializing embedded Checkout more than once?
actually i have the same clientSecret i only initilize it once
after i rerun it the app it doesnt give me the mount rather give bug
is 1 clientSecret can only create 1 embedded ?
if by chances we lost that embedded how can we get it back?
What do you mean by lost?
ah actually my bad
It sounds like you might be initializing twice without realizing it?
i run in android studio actually yah it intialize twice
is their a way to get old embeeded it by chance it happen
like using try catch
if catch this multiple embedeeed can get back that old one
Hold on, if you're building a native Android app you shouldn't be using Checkout at all.
You should be using PaymentSheet.
Ah, that's not something we directly support, so you're likely going to run into strange errors and issues. You can try to make it work, but I wouldn't recommend it.
ah got it
so if this embeeded once initilize we need to destroy before create new one ?
i will rerun the android studio to avoid this error
Yep, you can only have one embedded Checkout on the page at a time.