mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-07 18:26:30 +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:
|
||||
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"],
|
||||
|
Reference in New Issue
Block a user