Over the last year, I have ran into a few scenarios where I needed to receive money from someone that didn’t have Paypal. Searching around for a simple way of doing this turned up a few existing apps but they all either charge a monthly fee or take a big percentage of the sale.
I decided to build out a quick Laravel app to handle this in the future and it was amazing how fast I was able to complete the whole process.
Here are a breakdown of all the steps. Create a new Laravel app, require stripe-php, create two routes and a controller, then add some CSS styling. With the help of Forge and Let’s Encrypt I was then able to deploy in a matter of minutes and have it behind an SSL.
Accepting credit cards just a few years would have been dreadful and it’s so amazing how much nicer life has become for a developer.
Here is a link to the repo if you want an app to accept donations or one-off payments. It’s purposefully simple and nothing more than a single controller and two views but could save you a few minutes.
The way it’s setup you can just link to
/donate?amount=200.00&description=Donation and the GET request will handle setting up the form. If the amount is missing from the request then it will show an input for the user to enter their own amount.
Happy New Year!
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- Software Engineer Lead (PHP)
- Full-time Senior Web Developer
Wayne State University
- Senior Software Engineer
- Full Stack Engineer
Remote or Medford, Oregon
- Laravel Developer (fulltime - Dutch only)
Qbixx | Webservices
- Full Stack or Back-End Developer
Alexandria, VA; Tallahassee, FL; Orlando, FL
Marketing for Change
- Senior Quality Assurance Engineer
Josh — Laravel Admin template with CRUD generator – Sponsor
Josh admin template + front end + CRUD generator is a bootstrap based admin + frontend built for Laravel developers.…
Laravel 5.2 is released!
Laravel 5.2 is now officially released and available to everyone. This release features multiple authentication drive…