title: Stripe API Pass Dynamic Data
body: <p>Is there a way to pass dynamic data to the Stripe API? I'm using the example found here: <a href="https://stripe.com/docs/payments/checkout/client" rel="nofollow noreferrer">https://stripe.com/docs/payments/checkout/client</a></p>
  <p>I'd like to be able to pass a token along with the purchase in order to link an account with that payment. After the client side sends the payment to the API, my backend would receive the details of the payment, including the token to link it to an account created before this. I would add it as a param to to the successful redirect, but if they close the window early then the accounts will not be linked. I set up my product using the dashboard.</p>
  <p>I tried using metadata and description as a part of the line item, but it keeps saying &quot;Invalid stripe.redirectToCheckout parameter: lineItems.0.description is not an accepted parameter.&quot;</p>
  <pre><code>let token;
  stripe.redirectToCheckout({
      lineItems: [{
        price: 'boop', // Replace with the ID of your price
        quantity: 1,
        description: token
      }],
      mode: 'payment',
      successUrl: 'http://boop.com',
      cancelUrl: 'http://boop.com',
    }).then(function (result) {
      // If `redirectToCheckout` fails due to a browser or network
      // error, display the localized error message to your customer
      // using `result.error.message`.
    });
  </code></pre>
  <p>Thank you!</p>