@@ -21,6 +21,7 @@ def __init__(
2121 preset_issuing_country ,
2222 success_url ,
2323 error_url ,
24+ allow_handoff = None ,
2425 privacy_policy_url = None ,
2526 ):
2627 """
@@ -42,6 +43,8 @@ def __init__(
4243 :type error_url: str
4344 :param privacy_policy_url: the privacy policy url
4445 :type privacy_policy_url: str
46+ :param allow_handoff: boolean flag for allow_handoff
47+ :type allow_handoff: bool
4548 """
4649 self .__allowed_capture_methods = allowed_capture_methods
4750 self .__primary_colour = primary_colour
@@ -52,6 +55,7 @@ def __init__(
5255 self .__success_url = success_url
5356 self .__error_url = error_url
5457 self .__privacy_policy_url = privacy_policy_url
58+ self .__allow_handoff = allow_handoff
5559
5660 @property
5761 def allowed_capture_methods (self ):
@@ -134,6 +138,16 @@ def privacy_policy_url(self):
134138 """
135139 return self .__privacy_policy_url
136140
141+ @property
142+ def allow_handoff (self ):
143+ """
144+ Flag to enable/disable relying business to handoff
145+ support when creating a session.
146+
147+ :return: the allow_handoff
148+ """
149+ return self .__allow_handoff
150+
137151 def to_json (self ):
138152 return remove_null_values (
139153 {
@@ -146,6 +160,7 @@ def to_json(self):
146160 "success_url" : self .success_url ,
147161 "error_url" : self .error_url ,
148162 "privacy_policy_url" : self .privacy_policy_url ,
163+ "allow_handoff" : self .allow_handoff ,
149164 }
150165 )
151166
@@ -165,6 +180,7 @@ def __init__(self):
165180 self .__success_url = None
166181 self .__error_url = None
167182 self .__privacy_policy_url = None
183+ self .__allow_handoff = None
168184
169185 def with_allowed_capture_methods (self , allowed_capture_methods ):
170186 """
@@ -292,6 +308,18 @@ def with_privacy_policy_url(self, url):
292308 self .__privacy_policy_url = url
293309 return self
294310
311+ def with_allow_handoff (self , flag ):
312+ """
313+ Sets the allow handoff flag
314+
315+ :param flag: boolean value for flag
316+ :type flag: bool
317+ :return: the builder
318+ :rtype: SdkConfigBuilder
319+ """
320+ self .__allow_handoff = flag
321+ return self
322+
295323 def build (self ):
296324 return SdkConfig (
297325 self .__allowed_capture_methods ,
@@ -302,5 +330,6 @@ def build(self):
302330 self .__preset_issuing_country ,
303331 self .__success_url ,
304332 self .__error_url ,
333+ self .__allow_handoff ,
305334 self .__privacy_policy_url ,
306335 )
0 commit comments