当前位置: 首页>>代码示例>>Python>>正文


Python OptimalApiClient.three_d_secure_service_handler方法代码示例

本文整理汇总了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)

开发者ID:OptimalPayments,项目名称:Python_SDK,代码行数:30,代码来源:ThreeDSecureRequestForEnrollmentID.py

示例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)
开发者ID:OptimalPayments,项目名称:Python_SDK,代码行数:32,代码来源:ThreeDSecureRequestForAuthenticationID.py


注:本文中的PythonNetBanxSDK.OptimalApiClient.OptimalApiClient.three_d_secure_service_handler方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。