Skip to content

Commit e583ae2

Browse files
committed
fixed dummy mistake, automatic reformat of the file
1 parent 098e554 commit e583ae2

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

Adyen/client.py

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -67,27 +67,27 @@ class AdyenClient(object):
6767
"""
6868

6969
def __init__(
70-
self,
71-
username=None,
72-
password=None,
73-
xapikey=None,
74-
review_payout_username=None,
75-
review_payout_password=None,
76-
store_payout_username=None, store_payout_password=None,
77-
platform="test", merchant_account=None,
78-
merchant_specific_url=None,
79-
hmac=None,
80-
http_force=None,
81-
live_endpoint_prefix=None,
82-
http_timeout=30,
83-
api_bin_lookup_version=None,
84-
api_checkout_utility_version=None,
85-
api_checkout_version=None,
86-
api_management_version=None,
87-
api_payment_version=None,
88-
api_payout_version=None,
89-
api_recurring_version=None,
90-
api_terminal_version=None,
70+
self,
71+
username=None,
72+
password=None,
73+
xapikey=None,
74+
review_payout_username=None,
75+
review_payout_password=None,
76+
store_payout_username=None, store_payout_password=None,
77+
platform="test", merchant_account=None,
78+
merchant_specific_url=None,
79+
hmac=None,
80+
http_force=None,
81+
live_endpoint_prefix=None,
82+
http_timeout=30,
83+
api_bin_lookup_version=None,
84+
api_checkout_utility_version=None,
85+
api_checkout_version=None,
86+
api_management_version=None,
87+
api_payment_version=None,
88+
api_payout_version=None,
89+
api_recurring_version=None,
90+
api_terminal_version=None,
9191
):
9292
self.username = username
9393
self.password = password
@@ -222,13 +222,13 @@ def _store_payout_pass(self, **kwargs):
222222
raise AdyenInvalidRequestError(errorstring)
223223

224224
def call_api(
225-
self,
226-
request_data,
227-
service,
228-
method,
229-
endpoint,
230-
idempotency_key=None,
231-
**kwargs
225+
self,
226+
request_data,
227+
service,
228+
method,
229+
endpoint,
230+
idempotency_key=None,
231+
**kwargs
232232
):
233233
"""This will call the adyen api. username, password, merchant_account,
234234
and platform are pulled from root module level and or self object.
@@ -547,7 +547,7 @@ def _handle_response(self, url, raw_response, raw_request,
547547
AdyenResult: Result object if successful.
548548
"""
549549

550-
if status_code >= 200 and status_code <= 204:
550+
if status_code < 200 or status_code >= 300:
551551
response = {}
552552
# If the result can't be parsed into json, most likely is raw html.
553553
# Some response are neither json or raw html, handle them here:

0 commit comments

Comments
 (0)