Sha256: d2f84a7b4da0d37704b57840e912fbf9de1181ea5b1918d679782f2a8146324e

Contents?: true

Size: 556 Bytes

Versions: 2

Compression:

Stored size: 556 Bytes

Contents

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

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

#verificar o mtls

options = {
  client_id: CREDENTIALS::CLIENT_ID,
  client_secret: CREDENTIALS::CLIENT_SECRET,
  pix_cert: CREDENTIALS::PIX_CERT,
  sandbox: CREDENTIALS::SANDBOX,
  "x-skip-mtls-checking": "true"
}


params = {
    chave: "sua_chave"
}

body = {
    webhookUrl: "https://exemplo-pix/webhook"
}

gerencianet = Gerencianet.new(options)
puts gerencianet.pix_config_webhook(params: params, body: body)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gerencianet-1.0.2 examples/pix/webhooks/pix_config_webhook.rb
gerencianet-1.0.0 examples/pix/webhooks/pix_config_webhook.rb