Sage Pay Rails Example
This is an example application to demonstrate the sage_pay gem for interfacing with Sage Pay's server interface.
The current version (0.2.12) works with the same version number of the gem.
To get it working you first need to grab it:
git clone git://github.com/mathie/sage_pay_rails_example.git
Then you need to:
- Create a database and update database.yml with your settings
- rake db:migrate
- rake db:seed
- edit config/initializers/sage_pay.rb - adding your vendor ID and update the notification_url
- Ensure the appropriate gems are installed.
That should be it!
If you are interested in using SagePay Direct then look at dooks' modifications here (version 0.2.12):
If you want to copy this example into your rails application then please note:
- Not everything works (e.g. Refunds);
- It relies heavily on gems - in particular:
Provides all standard rest actions in controlers by default. It also provides the following helpers in views:
resource #=> @project
collection #=> @projects
resource_class #=> Project
Please note inherited_resources has it's own dependancies.
Allows you to quickly show a model's information with I18n features
Adds reflective access to validations