Skip to content

Commit 1c0d27b

Browse files
committed
DEBUG
1 parent 3b887f7 commit 1c0d27b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/server/ee/src/user/stripe-service.ts

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Stripe from "stripe";
99
import { Team, User } from "@gitpod/gitpod-protocol";
1010
import { Config } from "../../../src/config";
1111
import { AttributionId } from "@gitpod/gitpod-protocol/lib/attribution";
12+
import { log } from "@gitpod/gitpod-protocol/lib/util/logging";
1213

1314
const POLL_CREATED_CUSTOMER_INTERVAL_MS = 1000;
1415
const POLL_CREATED_CUSTOMER_MAX_ATTEMPTS = 30;
@@ -116,6 +117,7 @@ export class StripeService {
116117
customer: customer.id,
117118
});
118119
const paymentMethod = await this.getStripe().paymentMethods.retrieve(setupIntent.payment_method);
120+
log.info("Attaching payment method:", { paymentMethod });
119121
await this.getStripe().customers.update(customer.id, {
120122
invoice_settings: { default_payment_method: setupIntent.payment_method },
121123
...(paymentMethod.card?.country ? { address: { line1: "", country: paymentMethod.card.country } } : {}),

0 commit comments

Comments
 (0)