No commit activity in last 3 years
No release in over 3 years
REST client to connect with PagoEfectivo API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

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.