Fixed issue with one-time payments; Updated packages
This commit is contained in:
@@ -55,9 +55,10 @@ export async function createStripeCheckout(
|
||||
customer_email: params.customerEmail,
|
||||
};
|
||||
|
||||
const customerCreation = isSubscription
|
||||
? ({} as Record<string, string>)
|
||||
: { customer_creation: 'always' };
|
||||
const customerCreation =
|
||||
isSubscription || customer
|
||||
? ({} as Record<string, string>)
|
||||
: { customer_creation: 'always' };
|
||||
|
||||
const lineItems = params.plan.lineItems.map((item) => {
|
||||
if (item.type === 'metered') {
|
||||
|
||||
Reference in New Issue
Block a user