Skip to content

Instantly share code, notes, and snippets.

@mjallday
Created September 21, 2012 20:25
Show Gist options
  • Save mjallday/3763704 to your computer and use it in GitHub Desktop.
Save mjallday/3763704 to your computer and use it in GitHub Desktop.
Set buyer name
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