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

CookieMonster's avatar

Laravel Stripe without using Slim framework?

I want to use a one time payment checkout provided by Stripe as shown in the docs:

https://stripe.com/docs/payments/accept-a-payment?integration=checkout

This involves the usage of Slim framework on my laravel app. I think it is hassle to include another framework to it just to process a payment.It involves client and server side integration. On the other hand, there is a video by Jeffrey explaining how to integrate here:

https://laracasts.com/series/how-to-accept-payments-with-stripe/episodes/1

I prefer the latter way since it does not require another framework but the video is a little bit old and probably I think has deprecated?

Is there other alternative to accomplish the checkout stripe just like how Jeffrey implemented it?

0 likes
11 replies
bugsysha's avatar

I'm confused now. What is the exact problem? No need for Slim that is for sure.

bugsysha's avatar

You haven't described what the problem is.

CookieMonster's avatar

Problem is currently I am using single checkout by Stripe. So when I'm at finalize order page, user will fill up details in the form regarding the order that I need to save to db. Now this works as user can pay by credit wallet in my system. Alternatively, I added a pay with credit card using stripe. Clicking it pay with credit card will redirect me to Stripe checkout page.

At that page, if user enter all the credit card details etc and click Pay then it should return to a success page. I just need to figure out a way to retrieve those data from the form when user is redirected to a third party checkout page, then upon payment completed, it should save those data to my orders table.

bugsysha's avatar

@nickywan123 series here on Laracasts still shows relevant info so follow that and create new discussions for any problems you come across.

Gayle756's avatar

You can use the Stripe API in test mode, which does not affect your live data or ... The PHP library will then automatically send this key in each request. https://www.liteblue.life/

martinbean's avatar

This involves the usage of Slim framework on my laravel app. I think it is hassle to include another framework to it just to process a payment

@nickywan123 It’s an example. Stripe aren’t going to create an example for every framework for every language in existence. It’s offered as an example, for you to then modify and use as needed.

Of course you shouldn’t be including another framework just because it’s what Stripe used for their sample. So read the code, look at the APIs it’s showing example usage of, and then apply it to your own project.

1 like
CookieMonster's avatar

So there's no need for me to install Cashier to my app but suffice with Stripe?

bugsysha's avatar

Installing Cashier doesn't install Slim. So you can install Cashier or you can use Stripe PHP SDK directly. It is all for you to decide.

1 like

Please or to participate in this conversation.