StripeInvoice makes it easy for you to show invoices/receipts to the customers of your Koudoku-based Rails application. It downloads the last 100 invoices via the Stripe API, stores them in a table in the database and renders a basic invoice template.
- Show invoices & receipts to your customers
- Automatically assign Invoice # for new invoices
- Download invoices as PDF
StripeInvoice is opinionated on which gems your application uses.
StripeInvoice is hosted on RubyGems.org. To use it, just add the following line to your Gemfile
and run bundle install
:
gem 'stripe_invoice'
To setup your application run the following commands from the command line:
rails generate stripe_invoice:install
rake db:migrate
This will add necessary migrations to your application and run them. Additionally it will mount StripeInvoice into your application
at /stripe_invoice
To view the invoices log into your application and go to /stripe_invoice/
You probably want to customize the views for your application. You can easily install the views files (written with HAML)
to your application by running rails g stripe_invoice:views
from the command line.
The views will be installed into app/views/stripe_invoice/invoices/
folder
To contribute to the development of StripeInvoice please:
- fork the repository
- create a development branch
- code away
- send a pull request
This plugin is under development by Christoph Engelhardt, author of SaaS Email Marketing Handbook