Socket
Book a DemoInstallSign in
Socket

pago_efectivo_rest

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pago_efectivo_rest

bundlerRubygems
Version
0.1.2
Version published
Maintainers
1
Created
Source

PagoEfectivoRest

Pago Efectivo REST client api

Installation

Add this line to your application's Gemfile:

gem 'pago_efectivo_rest'

And then execute:

$ bundle

Usage

To use this gem you need a service code and keys provided by pago efectivo.

require 'pago_efectivo_rest'

pago_efectivo = PagoEfectivoRest::Client.new api_server:, code_service:, access_key:, secret_key:

Generate auth token

auth_token = pago_efectivo.generate_auth_token

Generate CIP

pago_efectivo.generate_cip token: token, currency: 'PEN', amount: '10.50', transaction: 'COD0001', expire_at: '2019-12-24T23:59:59-0500', client_email: 'client@email.com', admin_email: 'admin@email.com', phone: '977123456', phone_code: '+51'

License

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

FAQs

Package last updated on 19 Dec 2019

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