Coder Social home page Coder Social logo

spree_ideal's Introduction

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

spree_ideal's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.