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.