Skip to content

Integrating this SagePay gem into a clean app before I try anything crazy with existing code [unmaintained]

Notifications You must be signed in to change notification settings

mathie/sage_pay_rails_example

Repository files navigation

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

About

Integrating this SagePay gem into a clean app before I try anything crazy with existing code [unmaintained]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages