From cd7555e35f02fdc5c74b37c6502ba41752000744 Mon Sep 17 00:00:00 2001 From: i701 Date: Sat, 5 Jul 2025 17:42:06 +0500 Subject: [PATCH] =?UTF-8?q?fix(views):=20update=20paid=5Fat=20field=20in?= =?UTF-8?q?=20VerifyTopupPaymentAPIView=20to=20use=20transaction=20date=20?= =?UTF-8?q?from=20MIB=20response=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- billing/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/billing/views.py b/billing/views.py index 0f307fd..cf8227d 100644 --- a/billing/views.py +++ b/billing/views.py @@ -355,9 +355,8 @@ class VerifyTopupPaymentAPIView(StaffEditorPermissionMixin, generics.UpdateAPIVi ) else: topup.paid = True - topup.paid_at = timezone.now() topup.mib_reference = mib_resp["transaction"]["ref"] or "" - topup.paid_at = timezone.now() + topup.paid_at = mib_resp["transaction"]["trxDate"] topup.save() return PaymentVerificationResponse( message=mib_resp["message"],