Created
September 21, 2012 20:25
-
-
Save mjallday/3763704 to your computer and use it in GitHub Desktop.
Set buyer name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import balanced | |
key = balanced.APIKey().save() | |
balanced.configure(key.secret) | |
balanced.Marketplace().save() | |
card = balanced.Marketplace.my_marketplace.create_card( | |
name='John Stewart', | |
card_number='5105105105105100', | |
expiration_month='12', | |
expiration_year='2020', | |
security_code='123', | |
) | |
buyer = balanced.Marketplace.my_marketplace.create_buyer('buyer@example.org', | |
card_uri=card.uri, name='Test User') | |
assert(buyer.name == 'Test User') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment