#haluk1195_elements-provider-error

1 messages ¡ Page 1 of 1 (latest)

formal violetBOT
#

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

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

vapid tusk
#

This is the UI i'm trying to build

#

but switching between prices triggers the following alert messages

long wadi
#

Hi there,
reading your question, what exactly are you trying to accomplish with the key mapper?

vapid tusk
#

okay there are a few key mappers in there but basically each price has its own PaymentsSheet so when they click on a new price i loadStripe for that specific match urgency

#

I don't mind sharing more of the code but idk how helpful that'll be

long wadi
vapid tusk
#

so how can i achieve the front end experience that i'm shooting for?

long wadi
#

I am not clear why you would need to re-load loadstripe depending on where the user clicks on. Can you explain that a bit more please?

vapid tusk
#

so the prices are different between the payment sheets

long wadi
#

But the stripe prop normally only contains basically the publishable key. Product and pricing are used in the checkout form. Not in the Elements provider.

vapid tusk
#

oh so if i only use one stripe prop then i should be good? let me try that really quickly

long wadi
#

yes, you only need one stripePromise resolved through loadStripe function with the pubslihable key for the Elements provider.

vapid tusk
#

niceeeeee

long wadi
#

Sounds like it works?

vapid tusk
#

Yeah no longer getting the same err

long wadi
#

Sweet

vapid tusk
#

thanks cutie

long wadi
#

No problem. Anything else I can help you with?

vapid tusk
#

have a safe weekend!

long wadi
#

Thank you, you too!