mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-13 19:13:48 +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({
|
||||
customer_creation: 'always',
|
||||
customer_email: userEmail,
|
||||
line_items: lineItems,
|
||||
mode: 'payment',
|
||||
|
||||
Reference in New Issue
Block a user