@bates-solutions/stripe API Reference - v2.2.1
    Preparing search index...

    Class CheckoutService

    Checkout service wrapping Stripe Checkout Sessions.

    const session = await stripe.checkout.create({
    mode: 'subscription',
    customerId: 'cus_123',
    lineItems: [{ price: 'price_123', quantity: 1 }],
    successUrl: 'https://app.example.com/billing?success=true',
    cancelUrl: 'https://app.example.com/billing?canceled=true',
    });

    redirect(session.url);
    Index
    • List all line items of a Checkout Session (every page, fetched for you).

      Parameters

      Returns Promise<LineItem[]>

      When sessionId is missing

      const items = await stripe.checkout.listLineItems('cs_123', { expandProduct: true });
      for (const item of items) {
      console.log(item.price?.product, item.quantity, item.amount_total);
      }