Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 3.12 KB

README.md

File metadata and controls

71 lines (49 loc) · 3.12 KB

SpreeIdeal

Adds iDEAL payment Support to Spree through ABN AMRO Internetkassa's iDEAL Integration.

Build Status

Installation

Add spree_ideal to your Gemfile:

gem 'spree_ideal', :git => 'git://github.com/arein/spree_ideal.git'

For a specific version use the appropriate branch, for example

gem 'spree_ideal', :git => 'git://github.com/arein/spree_ideal.git', :branch => '2-4-stable'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_ideal:install

Setup

Navigate to Spree Backend/Configuration/Payment Methods and add a new payment method with Provider "Spree::PaymentMethod::Ideal".

Then log into either your testing or production ABN AMRO Internetkassa Back Office here.

Edit the following fields according to this doc:

  • ABN URL: https://internetkassa.abnamro.nl/ncol/test/orderstandard.asp for testing or https://internetkassa.abnamro.nl/ncol/prod/orderstandard.asp for production
  • PSPID: You'll find the PSPID in the footer of the Back Office
  • Accept URL: /ideal/accept
  • Decline URL: /ideal/decline
  • Exception URL: /ideal/exception
  • Cancel URL: /ideal/cancel
  • SHA IN Pass Phrase: Set this in the Back Office under Configuration -> Technical Information -> Data and Origin Verification -> SHA-IN Pass Phrase
  • SHA Out Pass Phrase: Set this in the Back Office under Configuration -> Technical Information -> Transaction Feedback -> SHA-OUT Pass Phrase (may not equal the SHA-IN Pass Phrase)
  • SHA Algorithm: Either "SHA-1", "SHA-256", or "SHA-512", according to the setting in the Back Office under Configuration -> Technical Information -> Global Security Parameters -> Hash Algorithm
  • Shop Base URL:

IMPORTANT:In the backoffice you need to carry out a few actions:

  • Set Configuration -> Technical Information -> Transaction Feedback -> "I would like to receive transaction feedback parameters on the redirection URLs" to YES
  • Set Configuration -> Technical Information -> Transaction Feedback -> "Timing of the request" to "Always Deferred" and "Request Method" to "GET"
  • Set Configuration -> Technical Information -> Transaction Feedback -> "Dynamic e-Commerce parameters" to "ACCEPTANCE", "AMOUNT", "BRAND", "CARDNO", "CURRENCY", "NCERROR", "ORDERID", "PAYID", "PM", "STATUS"

Running the Tests

  1. Install dependencies bundle install
  2. Create a Dummy app bundle exec rake test_app
  3. Change Directory cd spec/dummy
  4. Create a Test Database rake db:create RAILS_ENV=test
  5. Migrate rake db:migrate RAILS_ENV=test
  6. Seed bin/rake db:seed RAILS_ENV=test
  7. Load sample data bin/rake spree_sample:load RAILS_ENV=test
  8. Change Directory cd ../..
  9. Run RSpec rspec spec

Acknowledgements

This repository is inspired by @hefan's Spree Sofort Plugin

License

released under the New BSD License