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

jclee100's avatar

Single charge stripe library for Laravel?

I am building an application where users buy credits during a checkout process. Subsequently, I can charge the card directly without having to have users enter their cc details again.

During first payment, the user would create an account and pay at the same time.

I looked at cashier but it looks like it's made for subscription type applications.

Anyone knows of a good package or should I go with cashier?

0 likes
7 replies
jclee100's avatar

@Cronix Yes, I know that. But it looks like it's really built for subscriptions.

It also says on the documentation:

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.

gcwilliams's avatar

Cashier is great, but it is overkill for single charges. Now if your going to do subscription billing and on top of it, occasionally do single one off charges, then go for it. Otherwise it is just way more setup and hassle then just using the Stripe library directly.

jclee100's avatar

I went for Stripe's library.

I was considering https://cartalyst.com/manual/stripe-laravel/6.0 but decided against it. Didn't like the PHPStorm warnings from the Facade.

Stripe's library is easy enough. Just set the api key in something like the AppServiceProvider and use it anywhere on the app.

lifekent's avatar

@komirad Just want to remind you about the http://omnipay.thephpleague.com/ which is a good way to abstract from all your payment gateways and be able to easily use it for a single payment, token billing, subscription etc and switch between payment gateways with a one line change.

Please or to participate in this conversation.