Skip to content

Commit

Permalink
Merge pull request #33 from AUTGamecraft/excel
Browse files Browse the repository at this point in the history
debug 2
  • Loading branch information
Javad-Ak authored Sep 21, 2024
2 parents af95838 + 78bdb92 commit bc6d5a7
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 bc6d5a7

Please sign in to comment.