/cyber_plus_paiement

Cyber Plus gateway for ActiveMerchant

Primary LanguageRubyMIT LicenseMIT

CyberPlusPaiement

Cyber Plus Paiement Extension allow to integrate Cyber Plus Paiement as a payment method in Spree. This extension has been based on the work of two Github projects :

Once you have selected that payment method, you will be redirected to the secure servers to proceed your payment by credit card.

Installation

Add this line to your application's Gemfile:

gem 'cyber_plus_paiement'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cyber_plus_paiement

Configuration

  • login : Identifier given by your CyberPlusPaiement service
  • URL : URL to access the secure servers and proceed the payment
  • cert_for_test : Cetificate used in test environment and given by your CyberPlusPaiement service
  • cert_for_prod : Cetificate used in production environment and given by your CyberPlusPaiement service

Usage

TODO: Write usage instructions here

TODO

  • Give a proper trans_id (and not the time hack, problem if transaction in the same second ...)
  • Manage properly the error from the controller (Spree log ?)
  • Allow to configure a bit more the request (currency, ...)
  • and ... TEST THE EXTENTION (Scenario cases for the payment mandatory )
  • Put the business logic inside the model

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request