Skip to content

Scheduling infrastructure for absolutely everyone.

feat: enable Stripe Adaptive Currencies for subscription flows (#23328)

Alex van Andel9d67e1c473dd
diff --git a/apps/api/v2/src/modules/billing/services/billing.service.ts b/apps/api/v2/src/modules/billing/services/billing.service.ts
index 181e7fd1f1d..2cdefb3f774 100644
--- a/apps/api/v2/src/modules/billing/services/billing.service.ts
+++ b/apps/api/v2/src/modules/billing/services/billing.service.ts
@@ -89,7 +89,6 @@ export class BillingService implements OnModuleDestroy {
teamId: teamId.toString(),
plan: plan.toString(),
},
- currency: "usd",
subscription_data: {
metadata: {
teamId: teamId.toString(),
@@ -117,7 +116,6 @@ export class BillingService implements OnModuleDestroy {
teamId: teamId.toString(),
plan: plan.toString(),
},
- currency: "usd",
});
if (!url) throw new InternalServerErrorException("Failed to create Stripe session.");
@@ -403,7 +401,6 @@ export class BillingService implements OnModuleDestroy {
fromReschedule?: string | null;
}
) {
-
if (this.configService.get("e2e")) {
return true;
}
@@ -465,7 +462,6 @@ export class BillingService implements OnModuleDestroy {
async onModuleDestroy() {
try {
-
await this.billingQueue.close();
} catch (err) {
this.logger.error(err);