From 52c610fd126e411c6c31d2a571b26582f32547b9 Mon Sep 17 00:00:00 2001 From: John Hsu <johnhsu.local> Date: Sat, 17 Feb 2024 14:48:40 +0800 Subject: [PATCH] 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', []) )