Skip to content

Commit

Permalink
Change http status on successfull mpesa response
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekirapapaul authored Aug 23, 2020
1 parent 5c43a72 commit 7bb6da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpesa/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def post(self, request):
if transaction.checkoutRequestID:
status_response = check_payment_status(transaction.checkoutRequestID)
return JsonResponse(
status_response, status=400)
status_response, status=200)
else:
return JsonResponse({
"message": "Server Error. Transaction not found",
Expand Down

0 comments on commit 7bb6da6

Please sign in to comment.