next-firebase-stripe icon indicating copy to clipboard operation
next-firebase-stripe copied to clipboard

Property 'sessionId' does not exist on type 'DocumentData | undefined'.

Open beingabstrac opened this issue 1 year ago • 0 comments

// Wait for the CheckoutSession to get attached by the extension checkoutSessionRef.onSnapshot(async (snap) => { const { sessionId } = snap.data(); if (sessionId) { // We have a session, let's redirect to Checkout // Init Stripe const stripe = await initializeStripe(); stripe.redirectToCheckout({ sessionId }); } });

beingabstrac avatar Jun 03 '23 14:06 beingabstrac