Skip to content

Commit 9d67e1c

Browse files
feat: enable Stripe Adaptive Currencies for subscription flows (calcom#23328)
* feat: enable Stripe Adaptive Currencies for subscription flows - Add STRIPE_ADAPTIVE_CURRENCIES_ENABLED environment variable to control feature - Remove hardcoded USD currency when Adaptive Currencies is enabled - Update documentation with comprehensive setup instructions - Focus on team subscriptions, platform billing, and premium username flows - Maintain backward compatibility with USD default when disabled Co-Authored-By: alex@cal.com <me@alexvanandel.com> * refactor: simplify Stripe Adaptive Currencies implementation by removing currency parameter Co-Authored-By: alex@cal.com <me@alexvanandel.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 489d56d commit 9d67e1c

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

apps/api/v2/src/modules/billing/services/billing.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export class BillingService implements OnModuleDestroy {
8989
teamId: teamId.toString(),
9090
plan: plan.toString(),
9191
},
92-
currency: "usd",
9392
subscription_data: {
9493
metadata: {
9594
teamId: teamId.toString(),
@@ -117,7 +116,6 @@ export class BillingService implements OnModuleDestroy {
117116
teamId: teamId.toString(),
118117
plan: plan.toString(),
119118
},
120-
currency: "usd",
121119
});
122120

123121
if (!url) throw new InternalServerErrorException("Failed to create Stripe session.");
@@ -403,7 +401,6 @@ export class BillingService implements OnModuleDestroy {
403401
fromReschedule?: string | null;
404402
}
405403
) {
406-
407404
if (this.configService.get("e2e")) {
408405
return true;
409406
}
@@ -465,7 +462,6 @@ export class BillingService implements OnModuleDestroy {
465462

466463
async onModuleDestroy() {
467464
try {
468-
469465
await this.billingQueue.close();
470466
} catch (err) {
471467
this.logger.error(err);

0 commit comments

Comments
 (0)