Docs
How to add a coupon in Stripe

How to add a coupon in Stripe

Configuration of discount system in Stripe

How to add a coupon in Stripe

  1. Go to Stripe Dashboard Coupons
  2. Click on "+ New" button
  3. Fill the form with the coupon details
  4. Click on "Create coupon"
  5. Copy the coupon ID and paste it in file prices.ts in STRIPE_DISCOUNT_ID variable.
  6. Repeat 1-5 steps for Test mode in Stripe to create a coupon for test mode. Paste the coupon ID in STRIPE_DISCOUNT_ID_TEST variable.

How to disable coupon system in DoFastPro

  1. in prices.ts file, set the STRIPE_DISCOUNT_ID to null or undefined.