Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Rainieren's avatar

Laravel Stripe - Create invoices and implement one-off charges

I am working on a system where I want to build the functionality for the user to be able to create an invoice with invoice_items. A email gets send to the recipient with a payment request. The recipient clicks on the pay button within the email which redirects them to a checkout page where they can pay for that invoice.

I don't really know how to implement this or how this works so I am actually looks for tips on how to approach this. I'm not looking for code, just the best approach. Laravel Cashier provides a couple of migrations out of the box.

subscriptions
subscription_items

But these migrations are for a subscription-based use-cases only. In my case I would like the user to be able to make a one-time purchase. Are there any packages that do exactly this? I would like to handle the invoices using stripe so I can easily let the user download them.

There are a-lot of things to think about here such as:

  • Status of the invoice (If they paid or not, I think I have to use web-hooks for this but I am not familiar with it)
  • Send an invoice of the payment to the recipient (So the user pays for the invoice and then gets a receipt/invoice of their purchase)
  • Which database tables do I need for a case like this?

I must be forgetting a-lot of things but how can I best approach this? Can I use Laravel cashier or do I need to take a different approach. Any and all tips are welcome!

Thanks

0 likes
1 reply

Please or to participate in this conversation.