|
|
@ -12,8 +12,6 @@ import subprocess |
|
|
|
|
|
|
|
|
|
|
|
stripe.api_key = _cfg("stripe-secret") |
|
|
|
stripe.api_key = _cfg("stripe-secret") |
|
|
|
|
|
|
|
|
|
|
|
currency = _cfg("currency") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print("Processing monthly donations at " + str(datetime.utcnow())) |
|
|
|
print("Processing monthly donations at " + str(datetime.utcnow())) |
|
|
|
|
|
|
|
|
|
|
|
donations = Donation.query \ |
|
|
|
donations = Donation.query \ |
|
|
@ -31,7 +29,7 @@ for donation in donations: |
|
|
|
try: |
|
|
|
try: |
|
|
|
charge = stripe.Charge.create( |
|
|
|
charge = stripe.Charge.create( |
|
|
|
amount=donation.amount, |
|
|
|
amount=donation.amount, |
|
|
|
currency=currency, |
|
|
|
currency="usd", |
|
|
|
customer=user.stripe_customer, |
|
|
|
customer=user.stripe_customer, |
|
|
|
description="Donation to " + _cfg("your-name") |
|
|
|
description="Donation to " + _cfg("your-name") |
|
|
|
) |
|
|
|
) |
|
|
|