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


Python gateway.HpsCheckService类代码示例

本文整理汇总了Python中securesubmit.services.gateway.HpsCheckService的典型用法代码示例。如果您正苦于以下问题:Python HpsCheckService类的具体用法?Python HpsCheckService怎么用?Python HpsCheckService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了HpsCheckService类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_ach_debit_consumer_checking_business

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:9,代码来源:test_ach_echeck.py

示例2: test_ach_debit_consumer_savings_personal

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:9,代码来源:test_ach_echeck.py

示例3: test_e_silver

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:9,代码来源:test_ach_echeck.py

示例4: test_e_bronze_verify_checking_personal

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:10,代码来源:test_ach_echeck.py

示例5: test_e_gold_swipe

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:10,代码来源:test_ach_echeck.py

示例6: test_ach_debit_consumer_corporate

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:10,代码来源:test_ach_echeck.py

示例7: test_ach_debit_consumer_swipe_savings_business

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:11,代码来源:test_ach_echeck.py

示例8: test_e_silver_savings_business

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:11,代码来源:test_ach_echeck.py

示例9: test_ach_debit_consumer

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:12,代码来源:test_ach_echeck.py

示例10: test_ach_debit_corporate_savings_business

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:12,代码来源:test_ach_echeck.py

示例11: test_ach_debit_consumer_swipe

    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)
开发者ID:hps,项目名称:heartland-python,代码行数:13,代码来源:test_ach_echeck.py

示例12: test_e_gold_savings_personal

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:14,代码来源:test_ach_echeck.py

示例13: test_ach_debit_corporate_swipe_checking_business

    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)
开发者ID:derikrichards,项目名称:heartland-python,代码行数:16,代码来源:test_ach_echeck.py


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