I have a need to add a card to a pre-existing customer. Here's what I did:
1. obtain token from user submission
card_token = request.POST('stripeToken')
2. retrieve a customer
customer = stripe.Customer.retrieve('cus_xxxxxxxxxx')
3. add card to this customer
customer.Cards.create(card=card_token)
It is # 3 that I'm having trouble because it looks like the customer doesn't have method Cards, but I've seen people done it elsewhere.
How should I achieve this?