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

shadrix's avatar
Level 12

Laravel Cashier - "one-off" charges. Does it make sense to use it?

So in the doc it's written:

 If you're only performing "one-off" charges and do not offer subscriptions, you should not use Cashier. Instead, use the Stripe and Braintree SDKs directly.

But in the very bottom of the doc you can use single charges:

 If you would like to make a "one off" charge against a subscribed customer's credit card, you may use the charge method on a billable model instance.

I'm just wondering, can I still use Cashier? Or doesn't it matter. I'm just curious.

0 likes
2 replies
martinbean's avatar
Level 80

@shadrix Yes, you can still use Cashier if you also make one-off charges. I do so myself. I have a video on demand website where users can subscribe to channels of content, but can also rent individual titles (which is where I use one-off charges).

A word of warning: don’t use the invoiceFor() method for single transactions like purchases. If a charge fails, an invoice will still be created, and attempted again every few days. So I had an instance where a customer attempted to rent a title multiple times. When the invoices for each attempt were re-attempted a few days later, the money was taken for each invoice.

Please or to participate in this conversation.