fix(views): update paid_at field in VerifyTopupPaymentAPIView to use transaction date from MIB response 🐛

This commit is contained in:
2025-07-05 17:42:06 +05:00
parent 3cc29cade6
commit cd7555e35f

View File

@ -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"],