Sha256: b5ed016edccb75cf0ddf352adc862bed1b74077932252d5cfd7a506b6a2714d9

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

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

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

expireAt = Date.today + 3

params = {
  id: 1000
}

body = {
  billet_discount: 0,
  card_discount: 0,
  message: "",
  expire_at: expireAt.strftime,
  request_delivery_address: false,
  payment_method: "all"
}

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gerencianet-1.0.0 examples/default/charge/update_charge_link.rb