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

Latest commit

 

History

History
26 lines (14 loc) · 869 Bytes

README.md

File metadata and controls

26 lines (14 loc) · 869 Bytes

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)

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