Skip to content

Commit 3349922

Browse files
committed
Fixed small bug, added payment intents to admin page
1 parent e708654 commit 3349922

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/shop/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from .models import CoinifyAPICallback
44
from .models import CoinifyAPIInvoice
5+
from .models import CoinifyAPIPaymentIntent
56
from .models import CoinifyAPIRequest
67
from .models import CreditNote
78
from .models import CustomOrder
@@ -21,6 +22,7 @@
2122

2223
admin.site.register(EpayCallback)
2324
admin.site.register(CoinifyAPIInvoice)
25+
admin.site.register(CoinifyAPIPaymentIntent)
2426
admin.site.register(CoinifyAPICallback)
2527
admin.site.register(CoinifyAPIRequest)
2628

src/shop/coinify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def process_coinify_payment_intent_json(intentjson, order, request):
2121

2222
# if the order is paid in full call the mark as paid method now
2323
if "state" in intentjson:
24-
if intentjson["state"] == "complete" and not coinifyintent.order.paid:
24+
if intentjson["state"] == "completed" and not coinifyintent.order.paid:
2525
coinifyintent.order.mark_as_paid(request=request)
2626

2727
return coinifyintent

0 commit comments

Comments
 (0)