#usmseong_29857
1 messages · Page 1 of 1 (latest)
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.
- usmseong_29857, 1 day ago, 25 messages
- usmseong_29857, 1 day ago, 5 messages
- usmseong_29857, 1 day ago, 50 messages
not related to my previous conversations
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 }}
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
With regards to creating lots of PaymentIntents, that's not a huge issue
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?
Yes, if you've already created the PaymentIntent, you'll need to update it