Skip to content

SDK em Ruby integrada às APIs Efí Pay preparada para emissão de cobranças Pix com QR Code e Pix Copia e Cola, boletos, carnês, cartão de crédito, assinatura, link de pagamento, marketplance, iniciação de pagamento Pix via Open Finance, pagamento de boletos, dentre outras funcionalidades.

License

efipay/sdk-ruby-apis-efi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

SDK em Ruby integrada às APIs Efí Pay preparada para emissão de cobranças Pix com QR Code e Pix Copia e Cola, boletos, carnês, cartão de crédito, assinatura, link de pagamento, marketplance, iniciação de pagamento Pix via Open Finance, pagamento de boletos, dentre outras funcionalidades.

Resources

License

Stars

Watchers

Forks

Packages

No packages published