New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stall-cmcic

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stall-cmcic

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 01 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc