def create_card(customer, token):
    source = customer.stripe_customer.sources.create(source=token)
    return sync_payment_source_from_stripe_data(customer, source)
Creates a new card for a customer
dataset/ETHPy150Open pinax/pinax-stripe/pinax/stripe/actions/sources.py/create_card