Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

returned checkout.session.completed event

Blue Mouseba2d84b1a136
diff --git a/src/webhook/webhook.controller.ts b/src/webhook/webhook.controller.ts
index a3aa7c816..bcd7ea1c1 100644
--- a/src/webhook/webhook.controller.ts
+++ b/src/webhook/webhook.controller.ts
@@ -35,9 +35,9 @@ export class WebhookController {
const { uid, planCode } = dataObject['metadata']
switch (event.type) {
- // case 'checkout.session.completed':
- // await this.userService.update(uid, { planCode })
- // break
+ case 'checkout.session.completed':
+ await this.userService.update(uid, { planCode })
+ break
case 'invoice.paid':
if (dataObject['billing_reason'] == 'subscription_create') {
// Setting default payment method for subscription