File tree 1 file changed +2
-0
lines changed
components/server/ee/src/user
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import Stripe from "stripe";
9
9
import { Team , User } from "@gitpod/gitpod-protocol" ;
10
10
import { Config } from "../../../src/config" ;
11
11
import { AttributionId } from "@gitpod/gitpod-protocol/lib/attribution" ;
12
+ import { log } from "@gitpod/gitpod-protocol/lib/util/logging" ;
12
13
13
14
const POLL_CREATED_CUSTOMER_INTERVAL_MS = 1000 ;
14
15
const POLL_CREATED_CUSTOMER_MAX_ATTEMPTS = 30 ;
@@ -116,6 +117,7 @@ export class StripeService {
116
117
customer : customer . id ,
117
118
} ) ;
118
119
const paymentMethod = await this . getStripe ( ) . paymentMethods . retrieve ( setupIntent . payment_method ) ;
120
+ log . info ( "Attaching payment method:" , { paymentMethod } ) ;
119
121
await this . getStripe ( ) . customers . update ( customer . id , {
120
122
invoice_settings : { default_payment_method : setupIntent . payment_method } ,
121
123
...( paymentMethod . card ?. country ? { address : { line1 : "" , country : paymentMethod . card . country } } : { } ) ,
You can’t perform that action at this time.
0 commit comments