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:
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.
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/
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.