Giter Site home page Giter Site logo

kobana_pix's Introduction

KobanaPix

Gem teste de integração do Pix da Kobana.

Instalação

Adicione essa linha ao seu Gemfile:

gem 'kobana_pix', git: 'https://github.com/meirabruno/kobana_pix.git', tag: '0.1.0'

Depois execute:

$ bundle install

Exemplos de Uso

Crie o arquivo kobana_pix.rb no seu initializer com o seguinte conteúdo:

KobanaPix.configure do |config|
  config.url = ENV['KOBANA_PIX_URL']
  config.api_key = ENV['KOBANA_TOKEN_API']
end

Agora basta chamar o método de charge do pix:

KobanaPix::Payable.charge(body)

O body deve seguir as regras da documentação oficial da Kobana que pode ser vista em https://developers.kobana.com.br/v2.0/reference/post_v2-charge-pix

kobana_pix's People

Contributors

meirabruno avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.