Skip to content

Commit

Permalink
feat(billing): enable promo codes on checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Nov 19, 2024
1 parent d7511d8 commit de11211
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/src/billing/services/stripe/stripe.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class StripeService extends Stripe {
}
],
mode: "payment",
allow_promotion_codes: true,
customer: options.customerId,
success_url: `${options.redirectUrl}?session_id={CHECKOUT_SESSION_ID}&payment-success=true`,
cancel_url: `${options.redirectUrl}?session_id={CHECKOUT_SESSION_ID}&payment-canceled=true`
Expand Down

0 comments on commit de11211

Please sign in to comment.