Collecting creditcard details in Stripe with SetupIntent

Author:

Last updated: | View on GitHub

categories: stripe, rails, payments, api, tutorial

What is a SetupIntent?

SetupIntent is the process of saving a customer’s payment credentials for future payments source.

Why is it important?

As a business owner, you want to get creditcard details, in order to enable a Payment in the future.

How to implement it in Rails?

I’ve looked at the Sinatra implementation first. Used the Stripe CLI for the setup, made a comment about the setup which was applied to improve the README. The result is an experimental implementation here.