#Ben1011.promotion-payment

1 messages · Page 1 of 1 (latest)

tough ferry
#

Hey there! Are you using Payment Intents?

#

If yes, promotion codes don't currently work with one-time Payment Intents

#

You'd need to manual calculate the discount prior to creating the PI

stuck pecan
#

I'm creating a payment intent on my controller and returning the client secret in the react.

Okay, that's good to know. Thanks

tough ferry
#

Np! Let me know if you have follow-up questions

stuck pecan
#

I will, thank you

#

So just to be sure, say the total cost of a transaction is £10.00 and the user applies a 10% discount code to make the cost £9.00. I'd check that before the payment screen to get the updated price, then user that updated price to create the payment intent for the payment screen? I don't need to pass the promotion code itself with the payment?

tough ferry
#

Correct, you can't use Stripe's promotion codes with Payment Intents so you'd need to handle that logic yourself before your create the PI