Skip to content

Commit

Permalink
fix: added response_data as response dict
Browse files Browse the repository at this point in the history
  • Loading branch information
shahedex committed Dec 26, 2019
1 parent 50a2fe6 commit c6d0429
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Binary file modified __pycache__/sslcommerz_python.cpython-37.pyc
Binary file not shown.
4 changes: 4 additions & 0 deletions sslcommerz_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ def init_payment(self):

if response_sslc.status_code == 200:
response_json = json.loads(response_sslc.text)
if response_json['status'] == 'FAILED':
response_data['status'] = response_json['status']
response_data['failedreason'] = response_json['failedreason']
return response_data
response_data['status'] = response_json['status']
response_data['sessionkey'] = response_json['sessionkey']
response_data['GatewayPageURL'] = response_json['GatewayPageURL']
Expand Down

0 comments on commit c6d0429

Please sign in to comment.