Hi All,
I trying to find any good tutorial that clearly explains how to use Stripe payment with Livewire. I know in Stripe documentation have some example of how to use it. But I am building my first payment system and I need to one tutorial that explains step by step how to do it exactly.
FE part should be handled by Stripe JavaScript. Then you receive a request where you get all the required details. So unless you explain what is the exact problem you are facing with Livewire, not sure if anyone can guess it. Or maybe you haven't tried it at all and you want a finished version?
The thing is that The chozen paymentintegration is a 2 step flow with 2 routes. I think Stephan wants to replace the last step using livewire to skip the rerouting. And that’s it. I’m implementing thuis at the moment
I create a payment intent, store this in the database, and pass this to the client javascript. Then update the payment intent on receipt of the payment webhook.
My Livewire client polls the component and the component checks the state of the payment intent.
Whilst some of this could be done just in javascript, I prefer to hold the client until the webhook has been processed.
@nexxai Yeah unfortunately that doesn't work with me because I am allowing the site user to charge a customer on each separate invoice. So for instance, there's a user (also known as a Client) that has multiple invoices, and the payments need to apply to each individual invoice without the Client's involvement. The business owner will be using the website and will manually charge the customer with stripe, or possibly send them payment links/invoices through email, etc.
Cashier forces subscription model where the user just has 1 payment/subscription, and I don't have a way to tie multiple single payments to multiple single invoices