#meldin-checkout-coupon

1 messages · Page 1 of 1 (latest)

pearl egretBOT
unreal narwhal
#

@thorn horizon Hello! I'm sorry I don't understand what the question is here?

#

meldin-checkout-coupon

thorn horizon
#

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

unreal narwhal
#

I'm sorry but I am still really confused.

#

it looks like you already add the coupon so what's the problem?

thorn horizon
#

Yes, thats correct

#

I dont want to add the coupon right away

unreal narwhal
#

Okay so what's not working?

thorn horizon
#

I am so sorry for confusion

#

Lets go like this

#

is there a option for user to enter coupon code on stripe checkout page

unreal narwhal
#

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

thorn horizon
#

Ok great

#

Let me try that

#

Thx a lot

unreal narwhal
#

of course, sorry for the confusion earlier!