Sha256: 22b695364d9c540f770fe4e83b596a18ea948a80645d20c0d4d42156a78b2836
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
% if mode == 'definition': Balanced::CardHold.capture % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-2ADpvITfpgBn8uBzEGsQ2bIgWaftUWiul') card_hold = Balanced::CardHold.fetch('/card_holds/HL5wAfv8JaMsEn9idXrLZZZT') debit = card_hold.capture( :appears_on_statement_as => 'ShowsUpOnStmt', :description => 'Some descriptive text for the debit in the dashboard' ) % elif mode == 'response': #<Balanced::Debit:0x007ff2bdaa68f8 @attributes= {"amount"=>5000, "appears_on_statement_as"=>"BAL*ShowsUpOnStmt", "created_at"=>"2014-03-06T19:22:49.584629Z", "currency"=>"USD", "description"=>"Some descriptive text for the debit in the dashboard", "failure_reason"=>nil, "failure_reason_code"=>nil, "href"=>"/debits/WD5Co9XwRZJg1QtvC5QeekhX", "id"=>"WD5Co9XwRZJg1QtvC5QeekhX", "links"=> {"customer"=>"CU4Wt8xSbREzV2NWtdVAFGeR", "dispute"=>nil, "order"=>nil, "source"=>"CC5nCSU0yFp3qxR4p6UZST7y"}, "meta"=>{"holding.for"=>"user1", "meaningful.key"=>"some.value"}, "status"=>"succeeded", "transaction_number"=>"W493-697-4873", "updated_at"=>"2014-03-06T19:22:50.608819Z"}, @hyperlinks= {"customer"=> #<Proc:0x007ff2bdaa40d0/lib/balanced/resources/resource.rb:60 (lambda)>, "dispute"=> #<Proc:0x007ff2bdaaf5c0/lib/balanced/utils.rb:6 (lambda)>, "events"=> #<Proc:0x007ff2bdaad400/lib/balanced/utils.rb:6 (lambda)>, "order"=> #<Proc:0x007ff2bdaac730/lib/balanced/utils.rb:6 (lambda)>, "refunds"=> #<Proc:0x007ff2bdab4f98/lib/balanced/utils.rb:6 (lambda)>, "source"=> #<Proc:0x007ff2bdabd9e0/lib/balanced/resources/resource.rb:60 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0 | scenarios/card_hold_capture/ruby.mako |