mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-08 11:00:51 +00:00
fix(views): update paid_at field in VerifyTopupPaymentAPIView to use transaction date from MIB response 🐛
This commit is contained in:
@ -355,9 +355,8 @@ class VerifyTopupPaymentAPIView(StaffEditorPermissionMixin, generics.UpdateAPIVi
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
topup.paid = True
|
topup.paid = True
|
||||||
topup.paid_at = timezone.now()
|
|
||||||
topup.mib_reference = mib_resp["transaction"]["ref"] or ""
|
topup.mib_reference = mib_resp["transaction"]["ref"] or ""
|
||||||
topup.paid_at = timezone.now()
|
topup.paid_at = mib_resp["transaction"]["trxDate"]
|
||||||
topup.save()
|
topup.save()
|
||||||
return PaymentVerificationResponse(
|
return PaymentVerificationResponse(
|
||||||
message=mib_resp["message"],
|
message=mib_resp["message"],
|
||||||
|
Reference in New Issue
Block a user