Skip to content

Commit

Permalink
Merge 7e930eb into f94520f
Browse files Browse the repository at this point in the history
  • Loading branch information
solancer committed Nov 9, 2020
2 parents f94520f + 7e930eb commit 6bb452f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paypayopa/client.py
Expand Up @@ -140,6 +140,7 @@ def request(self, method, path, auth_header, **options):
"""
Dispatches a request to the PayPay HTTP API
"""
api_name = options['api_id']
del options['api_id']
url = "{}{}".format(self.base_url, path)
response = getattr(self.session, method)(url, headers={
Expand All @@ -154,7 +155,7 @@ def request(self, method, path, auth_header, **options):
json_response = response.json()
resolve_url = "{}?api_name={}&code={}&code_id={}".format(
URL.RESOLVE,
options.get("api_id"),
api_name,
json_response['resultInfo']['code'],
json_response['resultInfo']['codeId'])
print("This link should help you to troubleshoot the error: " + resolve_url)
Expand Down

0 comments on commit 6bb452f

Please sign in to comment.