#Hemant-coupon
1 messages · Page 1 of 1 (latest)
Yes, i am using checkout
I thought if i use the new product code to checkout, i should be able to see coupon as the product is configured with coupon.
By Stripe page, i meant this
You mean to restricted the coupon to a specific product? https://stripe.com/docs/billing/subscriptions/coupons#set-eligible-products
Yes , this promo code has been added to the product, but when i use that product_id to go to checkout page of Stripe, it is not showing me the promo code block to apply ptomo code.
I should see the promo code block here, isnt it ?
Got it. That won't automatically apply the coupon, it just means that it is eligible to be used with that product. It still needs to be applied to the Checkout Session, 2 options:
- Pass
allow_promotion_codeson creation: https://stripe.com/docs/billing/subscriptions/coupons#add-promotion-codes-to-checkout - Use the
discountsparameter: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-discounts
"allow_promotion_codes"
Where am i supposed to set this up ? while configuring the product ?
No, its a parameter you pass when creating your Checkout Session
ok , let me try that out and update you. Thanks mate
Amazing, it worked. Thank you ynnoj.
of course, np!