Skip to content

Commit da6df28

Browse files
author
Laurie T. Malau
committed
fix
1 parent 2775cfc commit da6df28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/server/ee/src/workspace/gitpod-server-impl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,11 +2200,11 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
22002200

22012201
if (createStripeSubscriptionOnUsage) {
22022202
await this.billingService.createStripeSubscription({ attributionId, setupIntentId, usageLimit });
2203+
} else {
2204+
await this.stripeService.setDefaultPaymentMethodForCustomer(customerId, setupIntentId);
2205+
await this.stripeService.createSubscriptionForCustomer(customerId, attributionId);
22032206
}
22042207

2205-
await this.stripeService.setDefaultPaymentMethodForCustomer(customerId, setupIntentId);
2206-
await this.stripeService.createSubscriptionForCustomer(customerId, attributionId);
2207-
22082208
// Creating a cost center for this customer
22092209
const { costCenter } = await this.usageService.setCostCenter({
22102210
costCenter: {

0 commit comments

Comments
 (0)