0.0
No commit activity in last 3 years
No release in over 3 years
Allows easy CM-CIC gateway integration in a Stall e-commerce app
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 10.0
~> 3.0

Runtime

~> 0.3
 Project Readme

Stall::Cmcic

This gem allows integrating your Stall e-commerce app with the CM-CIC online payment gateway solution.

This gem is just the glue between Stall and the cic_payment gem.

Installation

Add this line to your application's Gemfile:

gem 'stall-cmcic'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stall-cmcic

Then use the install generator to copy the config template file :

$ rails generator stall:cmcic:install

Usage

You first need to configure the gateway by filling the required variables in that were added to the stall config initialize.

By default, it is configured to fetch from the variables from the environment, so ideally, just create the following env vars :

  • CMCIC_HMAC_KEY
  • CMCIC_TPE
  • CMCIC_SOCIETE

Restart your server, and you should now be able to use the CM-CIC payment gateway in test mode.

When you're ready to switch to production, juste set the following environment variable :

  • CMCIC_PRODUCTION_MODE=true

Just like the other settings, you can change the way it's configured in the stall initializer file.

Automatic response URL

You need to provide a payment response URL to your bank which will be :

<http|http>://<YOUR_DOMAIN>/cmcic/payment/notify

You can find the route with :

rake routes | grep payment/notify

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/stall-rails/stall-cmcic.

License

The gem is available as open source under the terms of the MIT License.