title: Stripe webhooks, how can I receive the PRICE item when the product paid for is not a subscription but a one-time payment?
body: <p>I have 1 product in Stripe with 2 prices</p>
  <ul>
  <li>1st price is a recurring subscription</li>
  <li>2nd price is a one-time payment</li>
  </ul>
  <p>I process both by using <code>redirectToCheckout</code>, the first one with <code>mode: subscription</code> and the second one with <code>mode: payment</code>, and both indicating in <code>lineItems</code> the respective price codes</p>
  <p>Then, when the payment is fulfilled on Stripe's side, I get webhooks sent to my php backend</p>
  <p>With the 1st item I get the event type <code>customer.subscription.created</code>, and the info sent in that webhook <strong>includes</strong> the price code</p>
  <p>I need this price code to be sure that the user has fulfilled the payment for that specific <code>price</code> item</p>
  <p>The problem is with the 2nd item, I've been able to identify 4 events that are sent with the <strong>webhooks</strong> after payment:</p>
  <ul>
  <li><code>customer.created</code></li>
  <li><code>charge.succeeded</code></li>
  <li><code>payment_intent.succeeded</code></li>
  <li><code>checkout.session.completed</code></li>
  </ul>
  <p>And none of them include the <code>price</code> information about what product the user has paid for</p>
  <p>Probably I could ask stripe for that information in a <code>fetch</code> operation, but ... it is impossible that there isn't any webhook that includes this basic (?) information</p>
  <p>Or maybe I'm understanding it wrongly?</p>
  <p>EDIT:</p>
  <p>Probably the answer is <a href="https://stackoverflow.com/a/64028153/826815">this one</a>, so that the webhook (<code>checkout.session.completed</code>) by default is not including this information, and it indeed has to be retrieved in a 2nd step</p>