mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-05 16:56:19 +00:00
Add HTTP status codes to responses in VerifyPaymentView for payment verification
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m49s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m49s
This commit is contained in:
parent
09591bf825
commit
f8d6e78f90
@ -186,11 +186,13 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView):
|
||||
device.save()
|
||||
|
||||
return Response(
|
||||
{"message": f"Payment verified successfully using [{method}]."}
|
||||
{"message": f"Payment verified successfully using [{method}]."},
|
||||
status=status.HTTP_200_OK,
|
||||
)
|
||||
else:
|
||||
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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user