Skip to content

Commit a013c0e

Browse files
Merge pull request #89 from paypay/opa/update-domains
update domains
2 parents 2f7035c + b1f65d9 commit a013c0e

9 files changed

Lines changed: 16 additions & 14 deletions

File tree

‎.github/workflows/build-ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
CC_TEST_REPORTER_ID: 84299815950f2a6aeca847b60f89cc438aa3fbd0b0f3f92a447a0febcd9140bf
1010
strategy:
1111
matrix:
12-
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1313

1414
steps:
1515
- uses: actions/checkout@v2

‎paypayopa/constants/url.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class URL(object):
2-
SANDBOX_BASE_URL = 'https://stg-api.sandbox.paypay.ne.jp'
3-
PRODUCTION_BASE_URL = 'https://api.paypay.ne.jp'
4-
PERF_BASE_URL = 'https://perf-api.paypay.ne.jp'
2+
SANDBOX_BASE_URL = 'https://apigw.sandbox.paypay.ne.jp'
3+
PRODUCTION_BASE_URL = 'https://apigw.paypay.ne.jp'
4+
PERF_BASE_URL = 'https://perf-apigw.paypay.ne.jp'
55
RESOLVE = 'https://developer.paypay.ne.jp/develop/resolve'
66
CODE = "/v2/codes"
77
PAYMENT = "/v2/payments"

‎setup.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ def fetch_long_description():
3939
"License :: OSI Approved :: Apache Software License",
4040

4141
# List of supported Python versions
42-
# Make sure that this is reflected in .travis.yml as well
43-
'Programming Language :: Python :: 3.5',
44-
'Programming Language :: Python :: 3.6',
45-
'Programming Language :: Python :: 3.7',
42+
# Make sure that this is reflected in build-ci.yml as well
4643
'Programming Language :: Python :: 3.8',
44+
'Programming Language :: Python :: 3.9',
45+
'Programming Language :: Python :: 3.10',
46+
'Programming Language :: Python :: 3.11',
47+
'Programming Language :: Python :: 3.12',
48+
'Programming Language :: Python :: 3.13',
4749

4850
"Topic :: Software Development :: Libraries :: Python Modules",
4951
]

‎tests/helpers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def mock_file(filename):
1414

1515
class ClientTestCase(unittest.TestCase):
1616
def setUp(self):
17-
self.base_url = 'https://stg-api.sandbox.paypay.ne.jp/v2'
17+
self.base_url = 'https://apigw.sandbox.paypay.ne.jp/v2'
1818
self.payment_id = 'fake_payment_id'
1919
self.refund_id = 'fake_refund_id'
2020
self.merchant_id = 'fake_merchant_id'

‎tests/test_cancel_request_order.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def setUp(self):
1414
def test_cancel_request_order(self):
1515
"""Test cancel request order."""
1616
result = mock_file('cancel_request_order_response')
17-
url = "https://stg-api.sandbox.paypay.ne.jp/v1/requestOrder/fakeMerchantId"
17+
url = "https://apigw.sandbox.paypay.ne.jp/v1/requestOrder/fakeMerchantId"
1818
responses.add(responses.DELETE, url, status=200, body=json.dumps(result),
1919
match_querystring=True, )
2020
self.assertEqual(

‎tests/test_create_continues_payment.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_create_continues_payment(self):
1515
"""Test create continues payment."""
1616
init = mock_file('create_continues_payment_payload')
1717
result = mock_file('create_continues_payment_response')
18-
url = "https://stg-api.sandbox.paypay.ne.jp/v1/subscription/payments"
18+
url = "https://apigw.sandbox.paypay.ne.jp/v1/subscription/payments"
1919
responses.add(responses.POST, url, status=200, body=json.dumps(result),
2020
match_querystring=True)
2121
self.assertEqual(

‎tests/test_get_request_order.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def setUp(self):
1515
def test_get_request_order(self):
1616
"""Test get request order."""
1717
result = mock_file('get_request_order_response')
18-
url = "https://stg-api.sandbox.paypay.ne.jp/v1/requestOrder/fake_merchant_payment_id"
18+
url = "https://apigw.sandbox.paypay.ne.jp/v1/requestOrder/fake_merchant_payment_id"
1919
responses.add(responses.GET, url, status=200, body=json.dumps(result),
2020
match_querystring=True)
2121
self.assertEqual(self.client.Pending.get_payment_details(

‎tests/test_refund_request_order.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ def test_refund_request_order(self):
1515
"""Test refund request order."""
1616
init = mock_file('refund_request_order_payload')
1717
result = mock_file('refund_request_order_response')
18-
url = "https://stg-api.sandbox.paypay.ne.jp/v2/refunds"
18+
url = "https://apigw.sandbox.paypay.ne.jp/v2/refunds"
1919
responses.add(responses.POST, url, status=200, body=json.dumps(result))
2020
self.assertEqual(self.client.Pending.refund_payment(init), result)

‎tests/test_request_order.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_test_create_request_order(self):
1515
"""Test request order."""
1616
init = mock_file('request_order_payload')
1717
result = mock_file('request_order_response')
18-
url = "https://stg-api.sandbox.paypay.ne.jp/v1/requestOrder"
18+
url = "https://apigw.sandbox.paypay.ne.jp/v1/requestOrder"
1919
responses.add(responses.POST, url, status=200, body=json.dumps(result),
2020
match_querystring=True)
2121
self.assertEqual(

0 commit comments

Comments
 (0)