Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polirb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polirb

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

POLIrb

Unofficial Poli Gem for Ruby. This is VERY MUCH a pre-release; in its current iteration - I've not yet even tested it with an API key from POLi.

Installation

Install the gem

Command line:

$ gem install polirb

Or in your application's Gemfile:

gem 'polirb', '~> 0.1.0'

Global Configuration

To make things easier, you can define your client credentials at a global level:

# Set the configuration
Polirb.configure(
  :merchant_code          => "SAMPLE_MERCHANT_CODE",
  :authentication_code    => "SAMPLE_AUTHENTICATION_CODE",
  :merchant_homepage_url  => "http://www.example.com/",
  :success_url            => "http://www.example.com/poli/success",
  :failure_url            => "http://www.example.com/poli/failure",
  :cancellation_url       => "http://www.example.com/poli/cancellation",
  :notification_url       => "http://www.example.com/poli/notification",
  :timeout                => "900",
)

# Get the configuration
Polirb.configuration # => { ... }

# Reset the configuration
Polirb.reset_configuration

License

MIT - For terms refer to LICENSE.md

FAQs

Package last updated on 04 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