From 6300f6d2ff85186038b181aa220b4a69496a1947 Mon Sep 17 00:00:00 2001 From: John Hsu Date: Sat, 17 Feb 2024 14:48:40 +0800 Subject: [PATCH] fix: Changes for compataible with pyjwt 2 --- ecommerce/extensions/payment/processors/cybersource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecommerce/extensions/payment/processors/cybersource.py b/ecommerce/extensions/payment/processors/cybersource.py index 529e47a5d22..b2ee8994727 100644 --- a/ecommerce/extensions/payment/processors/cybersource.py +++ b/ecommerce/extensions/payment/processors/cybersource.py @@ -222,7 +222,7 @@ def _unexpired_capture_contexts(self, session): (capture_context, decoded_capture_context) for (capture_context, decoded_capture_context) in ( - (capture_context, jwt.decode(capture_context['key_id'], verify=False)) + (capture_context, jwt.decode(capture_context['key_id'], options={"verify_signature": False})) for capture_context in session.get('capture_contexts', []) )