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

brentxscholl's avatar

Laravel Cashier for Subscription based payment and One time payments

I'm setting up a booking style website where a user can buy a monthly subscription to be a premium user with extra features. I believe Laravel Cashier would work great for this.

I am also wanting my users (who are not premium) to be able to make one time payments (bookings) on the site.

However, I'm reading that for one time payments I need to use the Strip/Braintree SDK

Is there a way to do both Subscription based payment and one time payment using Laravel Cashier?

Thanks

0 likes
4 replies
Cronix's avatar

However, I'm reading that for one time payments I need to use the Strip/Braintree SDK

Laravel Cashier only works with stripe or braintree (out of the box).

Laravel Cashier provides an expressive, fluent interface to Stripe's and Braintree's subscription billing services.

Both can do subscriptions, and one-off/individual charges.

https://laravel.com/docs/5.6/billing#single-charges

brentxscholl's avatar

@Cronix Thanks for your reply!

This is the confusion I have:

The docs say

"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."

$user->charge(100);

But that is assuming the user already has a subscription with credit card credentials.

So does this mean the user has to be a subscribed user in order to make a one time charge? Or is it possible for a user who is not subscribed be able to make one time payments by entering their credit card info in a check out form?

brentxscholl's avatar

So does this mean the user has to be a subscribed user in order to make a one time charge? Or is it possible for a user, who is not subscribed, be able to make one time payments by entering their credit card info in a check out form?

MezooAdel's avatar

@brentxscholl Hello. How are you? How are things going with you after 6 years! I hope that you're doing great! How did you solved subscription and checkout [one-time payment] at same function? and the hook works for both ?

Please or to participate in this conversation.