#juancarlos111111
1 messages · Page 1 of 1 (latest)
here a little more context : On the checkout page of my website, we have three steps on the first want to collect information in there. I have a payment element that is collecting the customer information in the next step. We apply some coupons and some discounts the amount may change therefore, I update the payment intent and then I'm trying to confirm it but when I update the payment intent I gets that error . I'm not sure what I'm doing wrong.
Hi, that is an expected behavior. You will not be able to update the amount in this case. Looking into your use case of adding coupons...
thank you
On the last step on my website checkout page, we want to modify the amount and charge the payment intent that was created on the step before with the payment element, we're not using setup intent only payment intent
Can you not present the discounted price before you create the Payment Intent? Why would you like to add the discount after?
Is the checkout flow in the third step of this check out flow the user enters coupon, codes or specific discounts, and that can only be known at that time after the payment intent is created on the 2nd step
Looking at the documentation the update payment intent option. I thought that will be the way to do it and then confirm the payment intent
Are you using Stripe Checkout or Stripe Elements?
I was under the impression that you were using Stripe Elements
Payment Element , Payment Intent
yes
checkout I meant my e-commerce checkout page where I integrated Stripe payment element and doing direct payment intents . now I need to update that payment intent amount to then charge it.
Using Stripe Elements
I see, you won't be able to update the amount on the Payment Element once created. You can however, use this: https://stripe.com/docs/payments/place-a-hold-on-a-payment-method. When you can authorize and amount, and after the discounts, you can capture lesser amount than what was authorized.