File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1- #!/bin/python
2-
31BASE_PAL_URL = "https://pal-{}.adyen.com/pal/servlet"
42BASE_HPP_URL = "https://{}.adyen.com/hpp"
53ENDPOINT_CHECKOUT_TEST = "https://checkout-test.adyen.com"
97API_CHECKOUT_UTILITY_VERSION = "v1"
108API_PAYOUT_VERSION = "v30"
119API_RECURRING_VERSION = "v25"
10+
11+
12+ @property
13+ def API_VERSION ():
14+ import warnings
15+ warnings .warn ("this constant is deprecated use API_PAYOUT_VERSION" ,
16+ DeprecationWarning )
17+ return "v30"
Original file line number Diff line number Diff line change 22import unittest
33from BaseTest import BaseTest
44
5- from Adyen .exceptions import AdyenEndpointInvalidFormat
6-
75
86class TestCheckout (unittest .TestCase ):
97 adyen = Adyen .Adyen ()
Original file line number Diff line number Diff line change 11import Adyen
22import unittest
33from BaseTest import BaseTest
4- import pprint
54
65
76class TestCheckoutUtility (unittest .TestCase ):
Original file line number Diff line number Diff line change 11import Adyen
22import unittest
33from BaseTest import BaseTest
4-
54from Adyen .exceptions import AdyenEndpointInvalidFormat
65
76
@@ -21,7 +20,6 @@ def test_checkout_api_url_custom(self):
2120 "live.adyenpayments.com/checkout/v40/payments" )
2221
2322 def test_checkout_api_url (self ):
24-
2523 self .client .live_endpoint_prefix = None
2624 url = self .adyen .client ._determine_checkout_url ("test" ,
2725 "paymentsDetails" )
@@ -47,5 +45,4 @@ def test_payments_invalid_platform(self):
4745 try :
4846 result = self .adyen .checkout .payments (request )
4947 except AdyenEndpointInvalidFormat as error :
50- print ("the error" + str (error .__class__ .__name__ ))
51- self .assertIsNotNone ("dfasdf" )
48+ self .assertIsNotNone (error )
You can’t perform that action at this time.
0 commit comments