#tree-of-life_code

1 messages ยท Page 1 of 1 (latest)

young parcelBOT
#

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

sinful path
#

HI ๐Ÿ‘‹

As the error states, you cannot initialize multiple embedded checkout instances. What are you trying to do?

coral linden
#

then how can i get back the old one?

#

i only have the clientSecret on me

young parcelBOT
thorny pike
#

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?

coral linden
#

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?

thorny pike
#

What do you mean by lost?

coral linden
#

ah actually my bad

thorny pike
#

It sounds like you might be initializing twice without realizing it?

coral linden
#

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

thorny pike
#

Hold on, if you're building a native Android app you shouldn't be using Checkout at all.

#

You should be using PaymentSheet.

coral linden
#

i am using capacitor

#

webview little bit

thorny pike
#

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.

coral linden
#

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

thorny pike
#

Yep, you can only have one embedded Checkout on the page at a time.