mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-17 22:26:20 +00:00
This commit is contained in:
parent
09591bf825
commit
f8d6e78f90
@ -186,11 +186,13 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView):
|
|||||||
device.save()
|
device.save()
|
||||||
|
|
||||||
return Response(
|
return Response(
|
||||||
{"message": f"Payment verified successfully using [{method}]."}
|
{"message": f"Payment verified successfully using [{method}]."},
|
||||||
|
status=status.HTTP_200_OK,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
return Response(
|
return Response(
|
||||||
{"message": f"Payment verification FAILED using [{method}]."}
|
{"message": f"Payment verification FAILED using [{method}]."},
|
||||||
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
)
|
)
|
||||||
|
|
||||||
def process_wallet_payment(self, user, payment):
|
def process_wallet_payment(self, user, payment):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user