Sha256: e7b37c534856cd684e6044c7c46998d9eb3594cdc9a8184a1a8b7596959f9c3f

Contents?: true

Size: 519 Bytes

Versions: 2

Compression:

Stored size: 519 Bytes

Contents

require "gerencianet"
require_relative "../../credentials"

require "uri"
require "net/http"
require "openssl"

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

body = {
    valor: "0.01",
    pagador: {
        chave: "sua_chave"
    },
    favorecido: {
        chave: "chave_favorecido"
    }
}

gerencianet = Gerencianet.new(options)
puts gerencianet.pix_send(body: body)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gerencianet-1.0.2 examples/pix/pix/pix_send.rb
gerencianet-1.0.0 examples/pix/pix/pix_send.rb