mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Rejecting failed stripe payments.
This commit is contained in:
parent
83d18663dc
commit
9cb6d1f1b9
1 changed files with 1 additions and 0 deletions
|
@ -258,6 +258,7 @@ class Profile(models.Model):
|
|||
|
||||
for payment in stripe_payments:
|
||||
created = datetime.datetime.fromtimestamp(payment.created)
|
||||
if payment.status = 'failed': continue
|
||||
PaymentHistory.objects.create(user=self.user,
|
||||
payment_date=created,
|
||||
payment_amount=payment.amount / 100.0,
|
||||
|
|
Loading…
Add table
Reference in a new issue