Sha256: f2edd9f6c095d046ef625710d4086ff64b79e19383075da69aa01871ef5d8e10
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
% if mode == 'definition': Balanced::Card.new % elif mode == 'request': require 'balanced' Balanced.configure('ak-test-22IOkhevjZlmRP2do6CZixkkDshTiOjTV') card = Balanced::Card.new( :cvv => '123', :expiration_month => '12', :expiration_year => '3000', :number => '6500000000000002' ).save % elif mode == 'response': #<Balanced::Card:0x007fa93e98c9e0 @attributes= {"address"=> {"city"=>nil, "country_code"=>nil, "line1"=>nil, "line2"=>nil, "postal_code"=>nil, "state"=>nil}, "avs_postal_match"=>nil, "avs_result"=>nil, "avs_street_match"=>nil, "brand"=>"Discover", "created_at"=>"2014-04-25T20:10:24.900273Z", "cvv"=>"xxx", "cvv_match"=>"yes", "cvv_result"=>"Match", "expiration_month"=>12, "expiration_year"=>3000, "fingerprint"=> "3c667a62653e187f29b5781eeb0703f26e99558080de0c0f9490b5f9c4ac2871", "href"=>"/cards/CC4XMSQg2OY6rrcrkeEGtLcZ", "id"=>"CC4XMSQg2OY6rrcrkeEGtLcZ", "is_verified"=>true, "links"=>{"customer"=>nil}, "meta"=>{}, "name"=>nil, "number"=>"xxxxxxxxxxxx0002", "updated_at"=>"2014-04-25T20:10:24.900275Z"}, @hyperlinks= {"card_holds"=> #<Proc:0x007fa93e985fa0/lib/balanced/utils.rb:6 (lambda)>, "customer"=> #<Proc:0x007fa93e9852a8/lib/balanced/utils.rb:6 (lambda)>, "debits"=> #<Proc:0x007fa93e97eae8/lib/balanced/utils.rb:6 (lambda)>}> % endif
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
balanced-1.0.2 | scenarios/card_create_dispute/ruby.mako |