#meldin-checkout-coupon
1 messages · Page 1 of 1 (latest)
@thorn horizon Hello! I'm sorry I don't understand what the question is here?
meldin-checkout-coupon
I want to allow users to apply the coupon on Stripe checkout page
const params = {
submit_type: "pay",
mode: "payment",
discounts: discounts,
payment_method_types: ["card", "klarna", "afterpay_clearpay"],
billing_address_collection: "auto",
As u can see on discounts I am passing dicounts object with coupon id
So in this scenario if user goes to checkout page, coupon will be applied automatically
I'm sorry but I am still really confused.
it looks like you already add the coupon so what's the problem?
Okay so what's not working?
I am so sorry for confusion
Lets go like this
is there a option for user to enter coupon code on stripe checkout page
Ahhhh sorry
I assumed you had that already and were trying to do your own coupon validation
you need allow_promotion_codes: true in your Checkout Session creation
of course, sorry for the confusion earlier!