def update_card(customer, source, name=None, exp_month=None, exp_year=None):
    stripe_source = customer.stripe_customer.sources.retrieve(source)
    if name is not None:
        stripe_source.name = name
    if exp_month is not None:
        stripe_source.exp_month = exp_month
    if exp_year is not None:
        stripe_source.exp_year = exp_year
    s = stripe_source.save()
    return sync_payment_source_from_stripe_data(customer, s)
Capture a (fake) picture. This really copies a stock jpeg.
dataset/ETHPy150Open pinax/pinax-stripe/pinax/stripe/actions/sources.py/update_card--crossover with--dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/camera/camera.py/FakeCamera.capture