Skip to content

Commit

Permalink
Merge ac9f626 into 7074930
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-math committed Jun 27, 2022
2 parents 7074930 + ac9f626 commit f08e7df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions paypayopa/resources/pending.py
Expand Up @@ -69,5 +69,5 @@ def refund_details(self, id=None, **kwargs):
if id is None:
raise ValueError("\x1b[31m MISSING REQUEST PARAMS"
" \x1b[0m for merchantRefundId")
url = "{}/{}".format(self.base_url, id)
return self.fetch(None, url, None, api_id=API_NAMES.CANCEL_REQUEST_ORDER, **kwargs)
url = "{}/{}".format('/v2/refunds', id)
return self.fetch(None, url, None, api_id=API_NAMES.GET_REFUND, **kwargs)
4 changes: 2 additions & 2 deletions tests/test_cancel_request_order.py
Expand Up @@ -15,7 +15,7 @@ def test_cancel_request_order(self):
"""Test cancel request order."""
result = mock_file('cancel_request_order_response')
url = "https://stg-api.sandbox.paypay.ne.jp/v1/requestOrder/fakeMerchantId"
responses.add(responses.GET, url, status=200, body=json.dumps(result),
responses.add(responses.DELETE, url, status=200, body=json.dumps(result),
match_querystring=True, )
self.assertEqual(
self.client.Pending.refund_details('fakeMerchantId'), result)
self.client.Pending.cancel_payment('fakeMerchantId'), result)

0 comments on commit f08e7df

Please sign in to comment.