Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

marcboquet/paymill-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paymill subscriptions with Rails

Sample app for a subscription-based rails site using Paymill to process payments.
The code is based on Railscast #288 (Billing with Stripe)

WARNING

This app is not handling failed transactions, check out issue #4 for more information

Usage

Register for a test account at paymill.com and create the subscription plans (they called them Offers)

Setup the app:

bundle
rake db:migrate

Replace the test keys in config/initializers/paymill.rb for your own paymill API keys.

Run rake paymill:import_plans to get the plans and their IDs from paymill into the app.

That's it! Run rails server and it should work.

More information

Paymill API reference: https://www.paymill.com/en-gb/documentation-3/reference/api-reference/index.html

paymill-ruby gem: https://github.com/dkd/paymill-ruby