Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 1.6 KB

README.markdown

File metadata and controls

55 lines (33 loc) · 1.6 KB

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:

  1. Create a database and update database.yml with your settings
  2. rake db:migrate
  3. rake db:seed
  4. edit config/initializers/sage_pay.rb - adding your vendor ID and update the notification_url
  5. 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):

https://github.com/doooks/sage_pay_rails_example/commit/4a9524ac0fb8c72b0a797c83d94719107a38c537


Notes

If you want to copy this example into your rails application then please note:

  1. Not everything works (e.g. Refunds);
  2. 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