June 06, 2019 14:34
Published: August 15, 2016 20:13
Collecting money online is a lot more simple these days than it used to be. With Stripe you can accept credit cards through your rails app with a simple gem. Let's start by installing the Stripe Gem:
Then, run bundle install to install the gem.
Next, generate a new Charges controller:
The controller does two things:
Shows a credit card form (using Checkout).
Creates the actual charges by calling our API.
Now Add two actions to the controller:
To be continued....Follow the rest of the guide here