mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-15 20:13:50 +00:00
fix(#45): Re-add email
This commit is contained in:
@@ -50,6 +50,9 @@ export const POST: RequestHandler = async ({ request, cookies, locals: { safeGet
|
|||||||
if (stripeCustomerId) {
|
if (stripeCustomerId) {
|
||||||
// If the user has a Stripe customer ID, attach it to the checkout session
|
// If the user has a Stripe customer ID, attach it to the checkout session
|
||||||
stripeCheckoutSessionObject.customer = stripeCustomerId;
|
stripeCheckoutSessionObject.customer = stripeCustomerId;
|
||||||
|
} else {
|
||||||
|
// If the user doesn't have a Stripe customer ID, create a new customer with their email
|
||||||
|
stripeCheckoutSessionObject.customer_email = userEmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a subscription checkout session with Stripe
|
// Create a subscription checkout session with Stripe
|
||||||
|
|||||||
Reference in New Issue
Block a user