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!