diff options
| author | Magnus Hagander | 2019-11-20 10:59:55 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2019-11-20 10:59:55 +0000 |
| commit | 5064b2a2cf5fc33ba5529495e74e5ab47922bd1b (patch) | |
| tree | 09cca4d0d7e80cc22573697c18039147b9bb1f3f | |
| parent | e4862ab733fc95a96d6501acfc6ecac2666e224b (diff) | |
Pass id and not object for invoicerefund objects
| -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'), |
