mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 02:53:50 +00:00
fix(#45): Enable customer creation when creating a stripe checkout session
This commit is contained in:
@@ -27,6 +27,7 @@ export const POST: RequestHandler = async ({ request, cookies, locals: { safeGet
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
const checkoutSession = await stripeClient.checkout.sessions.create({
|
const checkoutSession = await stripeClient.checkout.sessions.create({
|
||||||
|
customer_creation: 'always',
|
||||||
customer_email: userEmail,
|
customer_email: userEmail,
|
||||||
line_items: lineItems,
|
line_items: lineItems,
|
||||||
mode: 'payment',
|
mode: 'payment',
|
||||||
|
|||||||
Reference in New Issue
Block a user