New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sdk_ruby_apis_efi

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sdk_ruby_apis_efi

  • 1.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 06 Nov 2023

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