#usmseong_29857

1 messages · Page 1 of 1 (latest)

topaz plinthBOT
#

Hello! We'll be with you shortly. 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.

proper parrot
#

not related to my previous conversations

pastel mango
#

Hey @proper parrot You have to pass in the amount and currency if you're not setting up Elements with a payment Intent. Something like this:

              options={{ appearance, mode: 'subscription', currency: 'usd', amount: amountDueInCents }}
proper parrot
#

i have a landing page where I want to have a stripe form in. however if I keep creating payment intent on page load, then if 1000 people visit the page I'll be creating 1000 payment intents that might not be used at all

feral vortex
#

With regards to creating lots of PaymentIntents, that's not a huge issue

proper parrot
#

I see. another concern I have is there's lots of selections that users can make in my landing page with stripe form. so there's like 5 buttons (such as increase the quantity of a product, and there's 3 products in my landing page) and each button would change the total amount. that means everytime user does anything that would change the total amount, I'll have to call payment intent again right?

feral vortex
#

Yes, if you've already created the PaymentIntent, you'll need to update it

proper parrot
#

thank you. and there might be 100k users visiting the page. you are saying it wouldn't be an issue creating that many payment intents on page load? just wanted to double check

#

cuz it could actually be more than 100k users