We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b647bd commit 43103ffCopy full SHA for 43103ff
src/app/services/stripe.service.ts
@@ -10,12 +10,11 @@ export class StripeService {
10
private stripe = new Stripe(environment.stripeKey, null);
11
12
public async createCustomer(user: UserData, email: string): Promise<string> {
13
- // const customer = await this.stripe.customers.create({
14
- // name: user.name,
15
- // email,
16
- // });
17
- // return customer.id;
18
- console.log(user, email);
19
- return undefined;
+ console.log('Creating customer with key', environment.stripeKey);
+ const customer = await this.stripe.customers.create({
+ name: user.name,
+ email,
+ });
+ return customer.id;
20
}
21
0 commit comments