Skip to content

Commit

Permalink
fix(server): allow promotion codes if no discount applied (#6810)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed May 7, 2024
1 parent b2b99ab commit 7041991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/server/src/plugins/payment/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class SubscriptionService {
tax_id_collection: {
enabled: true,
},
discounts,
...(discounts ? { discounts } : { allow_promotion_codes: true }),
mode: 'subscription',
success_url: redirectUrl,
customer: customer.stripeCustomerId,
Expand Down

0 comments on commit 7041991

Please sign in to comment.