Skip to content

Commit

Permalink
Merge pull request #37 from paypay/feature/request-fix
Browse files Browse the repository at this point in the history
Request unknown key api_id fix
  • Loading branch information
Srinivas Gowda authored Nov 4, 2020
2 parents c485609 + 5d93603 commit f94520f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paypayopa/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,13 @@ def request(self, method, path, auth_header, **options):
"""
Dispatches a request to the PayPay HTTP API
"""
del options['api_id']
url = "{}{}".format(self.base_url, path)
response = getattr(self.session, method)(url, headers={
'Authorization': auth_header,
'Content-Type': 'application/json;charset=UTF-8',
'X-ASSUME-MERCHANT': self.assume_merchant
})
}, **options)
if ((response.status_code >= HTTP_STATUS_CODE.OK) and
(response.status_code < HTTP_STATUS_CODE.REDIRECT)):
return response.json()
Expand Down

0 comments on commit f94520f

Please sign in to comment.