~sircmpwn/fosspay

70beb58339b6ffdc8ca15b7f8b7eaf5c5f512c58 — Olivier Benz a month ago 69d5821 master
Fix 'Donate again'

- Make it work with latest version of Stripe
1 files changed, 1 insertions(+), 1 deletions(-)

M fosspay/blueprints/html.py
M fosspay/blueprints/html.py => fosspay/blueprints/html.py +1 -1
@@ 236,7 236,7 @@ def donate():
        db.add(user)
    else:
        customer = stripe.Customer.retrieve(user.stripe_customer)
        new_source = customer.sources.create(source=stripe_token)
        new_source = customer.create_source(user.stripe_customer, source=stripe_token)
        customer.default_source = new_source.id
        customer.save()