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 b4cbbd8 commit aaeecdaCopy full SHA for aaeecda
services/StripeService.ts
@@ -1,6 +1,6 @@
1
import Stripe from 'stripe'
2
import { ApiError } from '../middleware/errorHandler.js'
3
-import { getProductConfig, type ProductConfig } from '../config/products.js'
+import { type ProductConfig } from '../config/products.js'
4
5
let stripeClient: Stripe | null = null
6
services/WebhookService.ts
@@ -81,7 +81,7 @@ const handleCheckoutSessionCompleted = async (session: Stripe.Checkout.Session):
81
type: 'checkout_completed',
82
user: {
83
id: userId,
84
- email: 'N/A' // Email not available in checkout session
+ email: session.customer_details?.email || session.customer_email || 'N/A'
85
},
86
referenceId: `checkout_completed_${session.id}`,
87
data: {
0 commit comments