diff options
| -rw-r--r-- | postgresqleu/stripepayment/api.py | 2 | ||||
| -rw-r--r-- | postgresqleu/stripepayment/views.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/stripepayment/api.py b/postgresqleu/stripepayment/api.py index ba688b68..738b7621 100644 --- a/postgresqleu/stripepayment/api.py +++ b/postgresqleu/stripepayment/api.py @@ -131,7 +131,7 @@ class StripeApi(object): refund = StripeRefund(paymentmethod=co.paymentmethod, chargeid=chargeid, - invoicerefundid=refundid, + invoicerefundid_id=refundid, amount=amount, refundid=r['id']) refund.save() diff --git a/postgresqleu/stripepayment/views.py b/postgresqleu/stripepayment/views.py index bc07376a..402ef185 100644 --- a/postgresqleu/stripepayment/views.py +++ b/postgresqleu/stripepayment/views.py @@ -197,7 +197,7 @@ def webhook(request, methodid): manager = InvoiceManager() manager.complete_refund( - refund.invoicerefundid, + refund.invoicerefundid_id, refund.amount, 0, # Unknown fee pm.config('accounting_income'), |
