mirror of
https://github.com/better-auth/better-auth.git
synced 2026-08-02 06:44:07 -05:00
chore: fix stripe test
This commit is contained in:
@@ -20,7 +20,9 @@ export async function onCheckoutSessionCompleted(
|
||||
const priceId = subscription.items.data[0]?.price.id;
|
||||
const plan = await getPlanByPriceId(options, priceId as string);
|
||||
if (plan) {
|
||||
const referenceId = checkoutSession?.client_reference_id;
|
||||
const referenceId =
|
||||
checkoutSession?.client_reference_id ||
|
||||
checkoutSession?.metadata?.referenceId;
|
||||
const subscriptionId = checkoutSession?.metadata?.subscriptionId;
|
||||
const seats = subscription.items.data[0].quantity;
|
||||
if (referenceId && subscriptionId) {
|
||||
|
||||
Reference in New Issue
Block a user