#ninja-checkout-promotioncodes
1 messages · Page 1 of 1 (latest)
Hello 👋
Yes you can allow promotion codes on Checkout
We have a guide here
https://stripe.com/docs/payments/checkout/discounts
But i don't want to pass the discount codes in the code, because my client want to be able to create new discount codes and tell customers that they can use this discount code
Ah yes, apologies! wrong link..
Let me find the right one!
Hmm looks like we don't have any docs that show how this can be done via the dashboard
Typically,
1/ you'd go to this page and create a coupon
https://dashboard.stripe.com/coupons
2/ create a promo code for the coupon (by clicking on the coupon > add promotion code on details page
3/ Enable checkout to accept promo codes
- if you're using the API to create Checkout session then setting
allow_promotion_codes: true
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-allow_promotion_codes
ninja-checkout-promotioncodes