本文整理汇总了Python中securesubmit.services.gateway.HpsCheckService.void方法的典型用法代码示例。如果您正苦于以下问题:Python HpsCheckService.void方法的具体用法?Python HpsCheckService.void怎么用?Python HpsCheckService.void使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类securesubmit.services.gateway.HpsCheckService
的用法示例。
在下文中一共展示了HpsCheckService.void方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_ach_debit_consumer
# 需要导入模块: from securesubmit.services.gateway import HpsCheckService [as 别名]
# 或者: from securesubmit.services.gateway.HpsCheckService import void [as 别名]
def test_ach_debit_consumer(self):
check = TestCheck.certification
check_service = HpsCheckService(TestServicesConfig.valid_services_config)
response = check_service.sale(check, 16.00)
self.assertIsNotNone(response)
self.assertEqual('0', response.response_code)
self.assertEqual('Transaction Approved', response.response_text)
void_response = check_service.void(response.transaction_id)
self.assertEqual('0', void_response.response_code)
self.assertEqual('Transaction Approved', void_response.response_text)
示例2: test_ach_debit_consumer_swipe
# 需要导入模块: from securesubmit.services.gateway import HpsCheckService [as 别名]
# 或者: from securesubmit.services.gateway.HpsCheckService import void [as 别名]
def test_ach_debit_consumer_swipe(self):
check = TestCheck.certification
check.data_entry_mode = DataEntryModeType.swipe
check_service = HpsCheckService(TestServicesConfig.valid_services_config, True)
response = check_service.sale(check, 11.00)
self.assertIsNotNone(response)
self.assertEqual('0', response.response_code)
self.assertEqual('Transaction Approved', response.response_text)
void_response = check_service.void(response.transaction_id)
self.assertEqual('0', void_response.response_code)
self.assertEqual('Transaction Approved', void_response.response_text)
示例3: test_e_silver_savings_personal
# 需要导入模块: from securesubmit.services.gateway import HpsCheckService [as 别名]
# 或者: from securesubmit.services.gateway.HpsCheckService import void [as 别名]
def test_e_silver_savings_personal(self):
check = TestCheck.certification
check.sec_code = SecCode.pop
check.account_type = AccountTypeType.savings
check_service = HpsCheckService(TestServicesConfig.valid_e_gold_config)
response = check_service.sale(check, 18.00)
self.assertIsNotNone(response)
self.assertEqual('0', response.response_code)
self.assertEqual('Transaction Approved', response.response_text)
void_response = check_service.void(response.transaction_id)
self.assertEqual('0', void_response.response_code)
self.assertEqual('Transaction Approved', void_response.response_text)
示例4: test_ach_debit_corporate_checking_business
# 需要导入模块: from securesubmit.services.gateway import HpsCheckService [as 别名]
# 或者: from securesubmit.services.gateway.HpsCheckService import void [as 别名]
def test_ach_debit_corporate_checking_business(self):
check = TestCheck.certification
check.sec_code = SecCode.ccd
check.check_type = CheckTypeType.business
check.check_holder.check_name = 'Heartland Pays'
check_service = HpsCheckService(TestServicesConfig.valid_services_config)
response = check_service.sale(check, 17.00)
self.assertIsNotNone(response)
self.assertEqual('0', response.response_code)
self.assertEqual('Transaction Approved', response.response_text)
void_response = check_service.void(response.transaction_id)
self.assertEqual('0', void_response.response_code)
self.assertEqual('Transaction Approved', void_response.response_text)