Skip to content

Instantly share code, notes, and snippets.

@mjallday
Created October 31, 2012 15:46
Show Gist options
  • Select an option

  • Save mjallday/3987789 to your computer and use it in GitHub Desktop.

Select an option

Save mjallday/3987789 to your computer and use it in GitHub Desktop.
Balanced minimal buyer creation
require 'balanced'
Balanced.configure('7b7a51ccb10c11e19c0a026ba7e239a9')
card = Balanced::Card.new({'card_number' => '5105105105105100', 'expiration_month' => '12', 'expiration_year' => '2020'}).save
Balanced::Account.new({'name' => 'bob', 'card_uri' => card.uri}).save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment