本文整理汇总了Python中PythonNetBanxSDK.OptimalApiClient.OptimalApiClient.direct_debit_service_handler方法的典型用法代码示例。如果您正苦于以下问题:Python OptimalApiClient.direct_debit_service_handler方法的具体用法?Python OptimalApiClient.direct_debit_service_handler怎么用?Python OptimalApiClient.direct_debit_service_handler使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PythonNetBanxSDK.OptimalApiClient.OptimalApiClient
的用法示例。
在下文中一共展示了OptimalApiClient.direct_debit_service_handler方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: OptimalApiClient
# 需要导入模块: from PythonNetBanxSDK.OptimalApiClient import OptimalApiClient [as 别名]
# 或者: from PythonNetBanxSDK.OptimalApiClient.OptimalApiClient import direct_debit_service_handler [as 别名]
#!/usr/bin/env python3
'''
Created on 1-June-2016
@author: Asawari.Vaidya
'''
from PythonNetBanxSDK.CustomerVault.EFTBankAccount import EFTBankAccount
from PythonNetBanxSDK.DirectDebit.Purchase import Purchase
from PythonNetBanxSDK.OptimalApiClient import OptimalApiClient
from utils.Utils import Utils
from Config import Config
from RandomTokenGenerator import RandomTokenGenerator
optimal_obj = OptimalApiClient(Config.api_key, Config.api_password, Config.environment, Config.account_number_EFT)
purchase_obj = Purchase(None)
purchase_obj.merchantRefNum(RandomTokenGenerator().generateToken())
purchase_obj.amount("10098")
eftbank_obj = EFTBankAccount(None)
eftbank_obj.paymentToken("Dw6TqO65OiBamTA")
purchase_obj.eft(eftbank_obj)
response_object = optimal_obj.direct_debit_service_handler().submit_purchase(purchase_obj)
print ("\nResponse Values ==========> ")
Utils.print_response(response_object)
示例2: EFTBankAccount
# 需要导入模块: from PythonNetBanxSDK.OptimalApiClient import OptimalApiClient [as 别名]
# 或者: from PythonNetBanxSDK.OptimalApiClient.OptimalApiClient import direct_debit_service_handler [as 别名]
standalone_Obj.amount("10098")
standalone_Obj.customerIp("192.0.126.111")
eftbank_Obj = EFTBankAccount(None)
eftbank_Obj.accountHolderName("XYZ Company")
eftbank_Obj.accountNumber("335892")
eftbank_Obj.transitNumber("22446")
eftbank_Obj.institutionId("001")
profile_Obj = Profile(None)
profile_Obj.firstName("Joe")
profile_Obj.lastName("Smith")
profile_Obj.email("[email protected]")
billingdetails_Obj = BillingDetails(None)
billingdetails_Obj.street("100 Queen Street West")
billingdetails_Obj.city("Ottawa")
billingdetails_Obj.state("ON")
billingdetails_Obj.country("CA")
billingdetails_Obj.zip("90210")
billingdetails_Obj.phone("6139991100")
standalone_Obj.profile(profile_Obj)
standalone_Obj.billingDetails(billingdetails_Obj)
standalone_Obj.eft(eftbank_Obj)
response_object = optimal_obj.direct_debit_service_handler().submit_standalone(standalone_Obj)
print ("\nResponse Values ==========> ")
Utils.print_response(response_object)