Skip to content

Commit 2421b54

Browse files
committed
rename to payments details
1 parent 0a134fa commit 2421b54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Adyen/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def _determine_checkout_url(self, platform, service, action,
138138
base_uri = settings.ENDPOINT_PROTOCOL + live_endpoint_prefix \
139139
+ settings.CHECKOUT_URL_LIVE_SUFFIX
140140

141-
if action == "paymentDetails":
142-
action = "payment/details"
141+
if action == "paymentsDetails":
142+
action = "payments/details"
143143
if action == "paymentsResult":
144144
action = "payment/result"
145145
if action == "originKeys":

test/CheckoutTest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ def test_payments_result_error_mocked(self):
196196

197197
def test_checkout_api_url(self):
198198
url = self.ady.client._determine_checkout_url("live", "",
199-
"paymentDetails")
199+
"paymentsDetails")
200200
self.assertEqual(url, "https://checkout-live.adyen.com"
201-
"/v40/payment/details")
201+
"/v40/payments/details")
202202

203203
def test_checkout_api_url_custom(self):
204204
url = self.ady.client._determine_checkout_url("live", "",

0 commit comments

Comments
 (0)