本文整理匯總了Python中PythonNetBanxSDK.OptimalApiClient.OptimalApiClient.three_d_secure_service_handler方法的典型用法代碼示例。如果您正苦於以下問題:Python OptimalApiClient.three_d_secure_service_handler方法的具體用法?Python OptimalApiClient.three_d_secure_service_handler怎麽用?Python OptimalApiClient.three_d_secure_service_handler使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PythonNetBanxSDK.OptimalApiClient.OptimalApiClient
的用法示例。
在下文中一共展示了OptimalApiClient.three_d_secure_service_handler方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: OptimalApiClient
# 需要導入模塊: from PythonNetBanxSDK.OptimalApiClient import OptimalApiClient [as 別名]
# 或者: from PythonNetBanxSDK.OptimalApiClient.OptimalApiClient import three_d_secure_service_handler [as 別名]
from Config import Config
from RandomTokenGenerator import RandomTokenGenerator
optimal_obj = OptimalApiClient(Config.api_key_2, Config.api_password_2, Config.environment, Config.account_number_2)
enrollment_Obj = EnrollmentChecks(None)
enrollment_Obj.merchantRefNum(RandomTokenGenerator().generateToken())
enrollment_Obj.amount("5000")
enrollment_Obj.currency("USD")
enrollment_Obj.customerIp("172.0.0.1")
enrollment_Obj.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36")
enrollment_Obj.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8")
enrollment_Obj.merchantUrl("https://www.merchant.com")
card_Obj = Card(None)
card_Obj.cardNum("4107857757053670")
card_Expiry_Obj = CardExpiry(None)
card_Expiry_Obj.month("10")
card_Expiry_Obj.year("2020")
card_Obj.cardExpiry(card_Expiry_Obj)
enrollment_Obj.card(card_Obj)
response_object = optimal_obj.three_d_secure_service_handler().submit_purchase_enrollment(enrollment_Obj)
print ("\nResponse Values ==========> ")
Utils.print_response(response_object)
示例2: Card
# 需要導入模塊: from PythonNetBanxSDK.OptimalApiClient import OptimalApiClient [as 別名]
# 或者: from PythonNetBanxSDK.OptimalApiClient.OptimalApiClient import three_d_secure_service_handler [as 別名]
enrollment_Obj.customerIp("172.0.0.1")
enrollment_Obj.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36")
enrollment_Obj.acceptHeader("text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8")
enrollment_Obj.merchantUrl("https://www.merchant.com")
card_Obj = Card(None)
card_Obj.cardNum("4107857757053670")
card_Expiry_Obj = CardExpiry(None)
card_Expiry_Obj.month("10")
card_Expiry_Obj.year("2020")
card_Obj.cardExpiry(card_Expiry_Obj)
enrollment_Obj.card(card_Obj)
response_object = optimal_obj.three_d_secure_service_handler().submit_purchase_enrollment(enrollment_Obj)
# Submit Authentications Request
authentications_Obj = Authentications(None)
authentications_Obj.merchantRefNum(RandomTokenGenerator().generateToken())
authentications_Obj.paRes("eJxVUstuwjAQ/BXEvbGd+JGgxVJaDgUJREtbtVyi4FgQtQngJDz+vnYI0N52PJ717Kzhb"+\
"WO0Hi20aoyWMNVVla51L8+GffN9xh72SKJW6+pgihqThFAeUCyikCZC+IGfEE76Eubxq95LOGhT5dtSEivzAV2h7WrU"+\
"Ji1rCanaP45nkkZ+hDGgDkKhzXgkeUjCiFrhBUKZFlpm+qB0WRv9QCgJOYtCLqhgzKpbHtS2sfRZhj4HdAXQmB+5qetdN"+\
"UDoeDx6RWfBU9sCkGMB3W3NG1dVttspz+SXPylVsDyvPl+O00W8VrN39kGXkziOh4DcDcjSWksfE44Z4T1CByQYYAq"+\
"oPYe0cDYks/G5IS8Idu6R+Eo55u8J2AUYXSo7CLXUDYE+7balTUDaYG41oLvlp2eXq6ptZJRgETIhmMAs4KJNuCVcl9zmY"+\
"i3jto0DgJwUdctD3e5t9e9P/AK4GK/3")
enrollment_Obj2 = EnrollmentChecks(None)
enrollment_Obj2.id(response_object.id)
authentications_Obj.enrollmentchecks(enrollment_Obj2)