Handling invoice.payment_succeeded event with Stripe checkout Laravel Cashier #51232
Unanswered
sts-ryan-holton
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I don't think it has anything to do with cashier. I believe that stripe checkout do not generate invoices hence do not generate invoice related events so the checkout one must be the one :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm migrating my Laravel Cashier setup over to utilise the Stripe checkout feature. My platform offers both: subscriptions and one-off charges. One of these one-off charges is the ability to replenish SMS credits in the user's account, originally, I was using the
invoicePrice
method and pass through some metadata:I'm then listening for a webhook event for
invoice.payment_succeeded
to know for sure to add SMS credits to their account:However, I'm now migrating to using Stripe's checkout, so it now looks like:
But I'm not getting an
invoice.payment_succeeded
event at all now. It seems that my metadata is now associated with thecheckout.session.completed
event.Should I migrate to this new event, or is this going to be unreliable? I only want such event to trigger when the invoice payment has succeeded
Beta Was this translation helpful? Give feedback.
All reactions