No release in over a year
A ruby gem for integration of your backend with the payment services provided by Efí Pay
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.1
~> 2.0
~> 0.1
~> 4.3
~> 2.5
~> 13.0
~> 0.1
 Project Readme

sdk-ruby-apis-efi

A ruby gem for integration of your backend with the payment services provided by Efí.

Installation

Add this line to your application's Gemfile:

gem 'sdk_ruby_apis_efi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sdk_ruby_apis_efi

Tested with

ruby 2.7.0
ruby 3.0.4

Basic usage

require 'sdk_ruby_apis_efi'

options = {
  client_id: CREDENTIALS::CLIENT_ID,
  client_secret: CREDENTIALS::CLIENT_SECRET,
  sandbox: CREDENTIALS::SANDBOX
}

efipay = SdkRubyApisEfi.new(options)

charge = {
  items: [{
    name: "Product A",
    value: 1000,
    amount: 2
  }]
}

response = efipay.createCharge(body: charge)
puts response

Examples

You can run the examples inside examples with the following command:

$ ruby examples/createCharge.rb

Just remember to set the correct credentials inside examples/credentials.rb before running.

Additional documentation

The full documentation with all available endpoints is in https://dev.efipay.com.br/.

Changelog

CHANGELOG

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/efipay/sdk-ruby-apis-efi. This project is intended to be a safe, welcoming space for collaboration.

License

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