File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
components/server/ee/src/workspace Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2200,11 +2200,11 @@ export class GitpodServerEEImpl extends GitpodServerImpl {
2200
2200
2201
2201
if ( createStripeSubscriptionOnUsage ) {
2202
2202
await this . billingService . createStripeSubscription ( { attributionId, setupIntentId, usageLimit } ) ;
2203
+ } else {
2204
+ await this . stripeService . setDefaultPaymentMethodForCustomer ( customerId , setupIntentId ) ;
2205
+ await this . stripeService . createSubscriptionForCustomer ( customerId , attributionId ) ;
2203
2206
}
2204
2207
2205
- await this . stripeService . setDefaultPaymentMethodForCustomer ( customerId , setupIntentId ) ;
2206
- await this . stripeService . createSubscriptionForCustomer ( customerId , attributionId ) ;
2207
-
2208
2208
// Creating a cost center for this customer
2209
2209
const { costCenter } = await this . usageService . setCostCenter ( {
2210
2210
costCenter : {
You can’t perform that action at this time.
0 commit comments