#lamb-checkout-invoice
1 messages · Page 1 of 1 (latest)
Do you have a Checkout Session ID you can share?
I see an invoice ID on my end. Did you receive the response above after making a call to retrieve the Checkout Session or something else?
I also see an invoice ID in the event details for the checkout.session.completed event that was sent to a webhook endpoint
Yes
Stripe::Checkout::Session.retrieve(session_id)
weird. I see it when i manually check it
At what point did you retrieve the Session? Was the status of the Session already complete?
weird. I see it when i manually check it
I'm trying to understand the difference here. What do you mean by manually check it?
wait, i dont understand why it's working now
I have about 40 records of it not working
That tends to happen sometimes, doesn't it 😅 I'm glad it's working though!
it seems like when i retreive the session details immediately after checkout, it doesn't populate the invoice id but does after a few seconds
Gotcha. Invoice creation should be relatively quick. I recommend using webhooks and listening for the checkout.session.completed events, which should include the invoice ID