Adds iDEAL payment Support to Spree through ABN AMRO Internetkassa's iDEAL Integration.
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
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"
- Install dependencies
bundle install
- Create a Dummy app
bundle exec rake test_app
- Change Directory
cd spec/dummy
- Create a Test Database
rake db:create RAILS_ENV=test
- Migrate
rake db:migrate RAILS_ENV=test
- Seed
bin/rake db:seed RAILS_ENV=test
- Load sample data
bin/rake spree_sample:load RAILS_ENV=test
- Change Directory
cd ../..
- Run RSpec
rspec spec
This repository is inspired by @hefan's Spree Sofort Plugin
released under the New BSD License