fix: wait activated event (#6814)

This commit is contained in:
darkskygit
2024-05-07 09:44:37 +00:00
parent 35ce4adffe
commit 8e0a0a7f02
2 changed files with 46 additions and 6 deletions

View File

@@ -204,7 +204,7 @@ export class SubscriptionService {
tax_id_collection: {
enabled: true,
},
...(discounts ? { discounts } : { allow_promotion_codes: true }),
...(discounts.length ? { discounts } : { allow_promotion_codes: true }),
mode: 'subscription',
success_url: redirectUrl,
customer: customer.stripeCustomerId,