title: Scheduling recurring payments with end date on stripe
body: <p>I am trying to create a 6-week course, where the customer signs up for the course and then gets automatically charged for portion of the course fee each week.</p>
  <p>I am able to create the 6-week subscription schedule but I am struggling to figure out how to get create a checkout session where the customer can put in their credit card information and start paying for this 6-week subscription.</p>
  <p>I am creating the subscription schedule like this:</p>
  <pre><code>// First, I create a price object which returns to me a price object with id: price_IK...
  const price = await stripe.prices.create({
    unit_amount: 100,
    currency: 'usd',
    recurring: {interval: 'week'},
    product: 'prod_LDD...',
  });
  
  // Then, I create a subscription schedule object which returns to make subscriptionSchedule object with id: sub_sched_1K...
  const schedule = await stripe.subscriptionSchedules.create({
    start_date: 'now',
    end_behavior: 'release',
    phases: [
      {
        items: [{ price: 'price_1K...', quantity: 1 }],
        iterations: 6,
      },
    ],
  });
  </code></pre>
  <p><strong>Now, how do I display a create a checkout session with this subscription schedule to allow a customers to put in their credit card information and start paying for this subscription?</strong></p>
  <p>For recurring payments with no end date, I'm able to just set a subscription payment in the checkout session itself:</p>
  <pre><code>const session = await stripe.checkout.sessions.create({
    mode: 'subscription',
    line_items: [
      {
        price: price_1K...,
        quantity: 1,
      },
    ],
    success_url: 'https://example.com/success.html?session_id={CHECKOUT_SESSION_ID}',
    cancel_url: 'https://example.com/canceled.html',
  });
  </code></pre>
  <p>I want to do something similar for recurring payments with an end date but don't seem to be able to.</p>