#juancarlos111111

1 messages · Page 1 of 1 (latest)

brazen jewelBOT
gloomy blade
#

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.

mortal tiger
#

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...

gloomy blade
#

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

mortal tiger
#

Can you not present the discounted price before you create the Payment Intent? Why would you like to add the discount after?

gloomy blade
#

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

mortal tiger
#

Are you using Stripe Checkout or Stripe Elements?

#

I was under the impression that you were using Stripe Elements

gloomy blade
#

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

mortal tiger