Skip to content

Commit 43103ff

Browse files
committed
feat: re-enabled the create customer function
1 parent 8b647bd commit 43103ff

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/app/services/stripe.service.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ export class StripeService {
1010
private stripe = new Stripe(environment.stripeKey, null);
1111

1212
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;
13+
console.log('Creating customer with key', environment.stripeKey);
14+
const customer = await this.stripe.customers.create({
15+
name: user.name,
16+
email,
17+
});
18+
return customer.id;
2019
}
2120
}

0 commit comments

Comments
 (0)