Permalink
Browse files

Use card.id rather than card.token

  • Loading branch information...
1 parent 8c5a79f commit 6152788b9e5e50984c3e279ada7227dbad0a849a @gdb committed Dec 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 domaincli
View
@@ -242,7 +242,7 @@ def get_card(config, rpc, opts):
real_card = { 'number' : number, 'exp_month' : exp_month, 'exp_year' : exp_year }
# TODO: catch these exceptions
res = stripe.Token.create(card=real_card, amount=1200)
- res = rpc.call('domaincli_add_card', { 'card_token' : res.token })
+ res = rpc.call('domaincli_add_card', { 'card_token' : res.id })
card = res
return card

0 comments on commit 6152788

Please sign in to comment.