From 4397ac52b8b886ff9b4682e8a6e5c28f39ae6c5c Mon Sep 17 00:00:00 2001 From: rizwanisready Date: Fri, 2 Aug 2024 15:38:25 +0530 Subject: [PATCH] auto recurring testing phase 20 --- goodtimes/webhook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/goodtimes/webhook.py b/goodtimes/webhook.py index 1af7e05..8ae28cc 100644 --- a/goodtimes/webhook.py +++ b/goodtimes/webhook.py @@ -136,6 +136,7 @@ class WebhookService: def get_coupon(self): coupon_code = self.charge_data["metadata"].get("couponCode") + print("get_coupon:coupon_code: ", coupon_code) if coupon_code: try: return Coupon.objects.get(coupon_code=coupon_code) @@ -275,6 +276,7 @@ class SubscriptionService: if coupon: coupon.no_of_redeems += 1 coupon.save() + print("Coupon Saved Successfully!!!") self.principal_subscription = principal_subscription return principal_subscription