From a99d85d9bf8b91a6e50c4c85bfba7e668dd0d198 Mon Sep 17 00:00:00 2001 From: jdungan Date: Sun, 30 Oct 2016 11:16:42 -0500 Subject: [PATCH] changes for PR comments --- payments/management/commands/check_validation.py | 2 +- payments/templates/email/need_validation.html | 2 +- payments/utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/payments/management/commands/check_validation.py b/payments/management/commands/check_validation.py index f1f732d0..8fe23f12 100644 --- a/payments/management/commands/check_validation.py +++ b/payments/management/commands/check_validation.py @@ -19,7 +19,7 @@ class Command(BaseCommand): def handle(self, *args, **options): - accounts = StripeAccount.objects.filter() + accounts = StripeAccount.objects.all() for account in accounts: try: stripe_account = stripe.Account.retrieve(account.account_id) diff --git a/payments/templates/email/need_validation.html b/payments/templates/email/need_validation.html index 72838188..3b7c69fa 100644 --- a/payments/templates/email/need_validation.html +++ b/payments/templates/email/need_validation.html @@ -2,7 +2,7 @@ Thanks for using codesy. We need some more information to keep transferring money to your bank account. -As a reminder, codesy.io only provides this information to our payment provider and does not stored it. +As a reminder, codesy.io only passes this information to Stripe, our payment provider, and we do not stored it. {% if expiration %} Please visit https://codesy.io/payments/identity to update before {{expiration}} to keep the transfers coming. diff --git a/payments/utils.py b/payments/utils.py index 5673ff5b..78bdff59 100644 --- a/payments/utils.py +++ b/payments/utils.py @@ -84,10 +84,10 @@ def refund(offer): ) if refund: offer.refund_id = refund.id - offer.save() except Exception as e: print e.message offer.error_message = e.message + offer.save() return offer.error_message == u''