@@ -71,7 +71,7 @@ def __init__(self, username=None, password=None, xapikey=None,
7171 store_payout_username = None , store_payout_password = None ,
7272 platform = "test" , merchant_account = None ,
7373 merchant_specific_url = None , skin_code = None ,
74- hmac = None , app_name = "" ,
74+ hmac = None ,
7575 http_force = None , live_endpoint_prefix = None ):
7676 self .username = username
7777 self .password = password
@@ -86,7 +86,6 @@ def __init__(self, username=None, password=None, xapikey=None,
8686 self .merchant_account = merchant_account
8787 self .skin_code = skin_code
8888 self .psp_list = []
89- self .app_name = app_name
9089 self .LIB_VERSION = settings .LIB_VERSION
9190 self .USER_AGENT_SUFFIX = settings .LIB_NAME + "/"
9291 self .http_init = False
@@ -221,8 +220,7 @@ def call_api(self, request_data, service, action, idempotency=False,
221220 succesful.
222221 """
223222 if not self .http_init :
224- self .http_client = HTTPClient (self .app_name ,
225- self .USER_AGENT_SUFFIX ,
223+ self .http_client = HTTPClient (self .USER_AGENT_SUFFIX ,
226224 self .LIB_VERSION ,
227225 self .http_force )
228226 self .http_init = True
@@ -360,8 +358,7 @@ def call_hpp(self, message, action, hmac_key="", **kwargs):
360358 :param hmac_key:
361359 """
362360 if not self .http_init :
363- self .http_client = HTTPClient (self .app_name ,
364- self .USER_AGENT_SUFFIX ,
361+ self .http_client = HTTPClient (self .USER_AGENT_SUFFIX ,
365362 self .LIB_VERSION ,
366363 self .http_force )
367364 self .http_init = True
@@ -425,8 +422,7 @@ def call_checkout_api(self, request_data, action, **kwargs):
425422 action (str): The specific action of the API service to be called
426423 """
427424 if not self .http_init :
428- self .http_client = HTTPClient (self .app_name ,
429- self .USER_AGENT_SUFFIX ,
425+ self .http_client = HTTPClient (self .USER_AGENT_SUFFIX ,
430426 self .LIB_VERSION ,
431427 self .http_force )
432428 self .http_init = True
@@ -497,8 +493,7 @@ def call_checkout_api(self, request_data, action, **kwargs):
497493 def hpp_payment (self , request_data , action , hmac_key = "" , ** kwargs ):
498494
499495 if not self .http_init :
500- self .http_client = HTTPClient (self .app_name ,
501- self .USER_AGENT_SUFFIX ,
496+ self .http_client = HTTPClient (self .USER_AGENT_SUFFIX ,
502497 self .LIB_VERSION ,
503498 self .http_force )
504499 self .http_init = True
0 commit comments