Sha256: 01e0a54540fe98ff324aa868bf0b12c416ec7e8c7b34c322e169855a70444c69
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
require "gerencianet" require "date" require_relative "./credentials" options = { client_id: CREDENTIALS::CLIENT_ID, client_secret: CREDENTIALS::CLIENT_SECRET, sandbox: CREDENTIALS::SANDBOX } tomorrow = Date.today + 1 params = { id: 553880 } body = { payment: { banking_billet: { expire_at: tomorrow.strftime, customer: { name: "Gorbadoc Oldbuck", email: "oldbuck@gerencianet.com.br", cpf: "94271564656", birth: "1977-01-15", phone_number: "5144916523" } } } } gerencianet = Gerencianet.new(options) puts gerencianet.pay_charge(params: params, body: body)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gerencianet-1.0.0 | examples/default/charge/create_billet_payment.rb |