From d94d73461bf61b2430653820eb95bdc0a2ea1768 Mon Sep 17 00:00:00 2001 From: Jawad Khan Date: Fri, 26 Jul 2024 23:12:13 +0500 Subject: [PATCH] fix: Remove redundant apple date match check --- ecommerce/extensions/iap/processors/base_iap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ecommerce/extensions/iap/processors/base_iap.py b/ecommerce/extensions/iap/processors/base_iap.py index 106a881e44e..23f8b2f986b 100644 --- a/ecommerce/extensions/iap/processors/base_iap.py +++ b/ecommerce/extensions/iap/processors/base_iap.py @@ -178,8 +178,7 @@ def parse_ios_response(self, response, product_id): """ purchases = response['receipt'].get('in_app', []) for purchase in purchases: - if purchase['product_id'] == product_id and \ - response['receipt']['original_purchase_date_ms'] == purchase['original_purchase_date_ms']: + if purchase['product_id'] == product_id: response['receipt']['in_app'] = [purchase] break