Sha256: 5afaf5fd585195a35404aecc29568c4ae2ae6c2f24f793205b59da950382187c
Contents?: true
Size: 1018 Bytes
Versions: 1
Compression:
Stored size: 1018 Bytes
Contents
require_relative 'lib/Justa' Justa.secret_key = 'Q__g6ie850Pv4jVBQUeyAMA_mlJH3xG1Acg2FiPU_lYpVol9z69RHmOE4BZDMaHVGsMEg1s9BI5pvgKkCAWDdw' Justa.access_key='CyUqG2hSfQJbE8OTWfy1fQ' Justa.client_id='ubceuMCPeVygHW8xynrFYzbF3JKE1zlnpjNBReM6gDz0jzQ-5clVgRdtRRDJ5yWENkGMnC3VI2wQSyu_507g5c9ujS6D5eOSBVheKbMVbEW8qk8dYb41yqgl7o9xv-puarpHV7Dk3jv6n6_HZlAl4S8gHjNsayuj2RSqT8AbtY4' # Justa::Authenticator.instance() # Justa::Authenticator.headers sh = Justa::Order.new({ order_ref: "Justapag-001", wallet: "Justa-pagador", total: 0.51, items: [ { item_title: "Item 1", unit_price: 0.30, quantity: 1 }, { item_title: "Item 2", unit_price: 0.20, quantity: 1 }, { item_title: "Item 3", unit_price: 0.01, quantity: 1 } ], buyer: { name: "Justa PDV", cpf_cnpj: "121.191.870-02", email: "Justa-pagador@Justa.com.br", phone: "+55 11 99999-9999" } }).create puts sh # Justa.api_endpoint='https://postman-echo.com/get' ord = Justa::Order.find_by_id(sh.order_id) puts ord
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
justa-ruby-0.1.9 | main.rb |