I’m delighted to announce the release of the starter application:

It is a Rails 4.2 starter app for selling a product using Stripe JS. It is accompanied by the:

I previously released a tutorial covering Stripe Checkout which is Stripe’s entry-level approach to payment processing. Stripe Checkout is very limited because the pop-up payment form cannot be customized for use with a Rails application. Stripe.js is optimal for use with a Rails application, allowing full customization of a payment form and integration with Rails form processing. The rails-stripe-coupon application implements a payment feature using Stripe JS so a visitor pays to download a PDF file. The application accommodates promotional coupons and adds payment forms to landing pages, for real-world payment processing.

The application offers these features:

welcome page offers an ebook for sale

visitor enters an email address and password to create an account

visitor enters credit card information and payment is processed by Stripe

the user can download a digital product

the user can return to the site and repeat the download if needed

Additionally:

background processing adds the email address to a mailing list

background processing completes payment for a speedy response

multiple landing pages can accommodate different offers

you can provide coupons for promotional discounts or free downloads

This new tutorial builds on concepts introduced in three earlier tutorials:

In the new tutorial, you’ll learn how to integrate Stripe JS with Devise registration. You can charge customers for access to a website. Or you can sell a digital product and customers can return to download it later.

You can build the example as a starter app using Rails Composer:

The example application is open source and free. The tutorial is available to supporters of the RailsApps project, who get in-depth tutorials as my thank you for their support of the project. My thanks to everyone who supports the project!