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