#kashi3029

1 messages · Page 1 of 1 (latest)

spiral karmaBOT
viscid cove
#

Hi there, Stripe promo code or coupon doesn't work with PaymentIntent.

#

You might need to implement your own promo code logic if you don't want to use Checkout Sessions.

proven hedge
#

Yes I know but how can I appy promo code so I can see and dashboard as well how many users have redeem that promo code also how can I verify promo code is valid or not and also how can I update payment intent and new price

viscid cove
#

As I said earlier, you can't apply a promo code to a PaymentIntent.

proven hedge
#

Okay So can you let me know If I implement promo code login by my side how can I update payment intent because my currenly flow when user click on buy button I am creating new customer after that I am creating new subcription for that customer which return me client_secret and I am passing that client_secret to frontend and frontend redirect user to payment page in my website now if user apply promo code I have 1 api which I call now I can verify also by my side is valid or not now my queituon is how can i update price in payment intent because in that price will be subcription prive I have created when user clicked on buy button. now my only quetion is how can I update price in subcription or paymentintent

viscid cove
proven hedge
#

Thank you for this help

proven hedge
#

message
:
"Some of the parameters you provided (amount) cannot be used when modifying a PaymentIntent that was created by an invoice. You can try again without those parameters. Getting this error when Trying to apply promo code in subscription

viscid cove
#

As the error explains, you can't modify the amount of the paymentIntent that was created by an invoice.

viscid cove
#

You can update the amount of a PaymentIntent that created by yourself.