Skip to content

Commit

Permalink
debug 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Javad-Ak committed Sep 21, 2024
1 parent 62ab2b6 commit 78bdb92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions user/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,13 @@ def enroll(self, request):
payment.save()

if PAYWALL != 'idpay':
_status = result['status']
_code = result['code']
_link = PayPingPeymentLinkGenerator(_code)
return redirect(_link)
result = {
"link": PayPingPeymentLinkGenerator(_code),
"status": _status
}
return self.set_response(message=None, data=result, status_code=status.HTTP_200_OK)
else:
return self.set_response(message="پیاده سازی نشده", error="Not implemented",
status_code=status.HTTP_501_NOT_IMPLEMENTED)
Expand Down

0 comments on commit 78bdb92

Please sign in to comment.