@@ -42,6 +42,7 @@ def __init__(self):
4242 self .__cpf = None
4343 self .__payer_email = None
4444 self .__network_transaction_id = None
45+ self .__is_3DS_authentication = None
4546
4647 @property
4748 def card_token (self ):
@@ -279,6 +280,14 @@ def network_transaction_id(self):
279280 def network_transaction_id (self , value ):
280281 self .__network_transaction_id = value
281282
283+ @property
284+ def is_3DS_authentication (self ):
285+ return self .__is_3DS_authentication
286+
287+ @is_3DS_authentication .setter
288+ def is_3DS_authentication (self , value ):
289+ self .__is_3DS_authentication = value
290+
282291
283292 def parse_rsp_body (self , card_payment_method_detail_body ):
284293 if type (card_payment_method_detail_body ) == str :
@@ -378,6 +387,8 @@ def parse_rsp_body(self, card_payment_method_detail_body):
378387 self .__payer_email = card_payment_method_detail_body ['payerEmail' ]
379388 if 'networkTransactionId' in card_payment_method_detail_body :
380389 self .__network_transaction_id = card_payment_method_detail_body ['networkTransactionId' ]
390+ if 'is3DSAuthentication' in card_payment_method_detail_body :
391+ self .__is_3DS_authentication = card_payment_method_detail_body ['is3DSAuthentication' ]
381392
382393 def to_ams_dict (self ):
383394 params = dict ()
@@ -441,4 +452,6 @@ def to_ams_dict(self):
441452 params ['payerEmail' ] = self .payer_email
442453 if self .network_transaction_id :
443454 params ['networkTransactionId' ] = self .network_transaction_id
455+ if self .is_3DS_authentication :
456+ params ['is3DSAuthentication' ] = self .is_3DS_authentication
444457 return params
0 commit comments