コード例 #1
0
    def test_002_add_customer_company(self):
        customer = HpsPayPlanCustomer()
        customer.customer_identifier = self.get_identifier('Business')
        customer.company = 'AcmeCo'
        customer.customer_status = HpsPayPlanCustomerStatus.ACTIVE
        customer.primary_email = '*****@*****.**'
        customer.address_line_1 = '987 Elm St'
        customer.city = 'Princeton'
        customer.state_province = 'NJ'
        customer.zip_postal_code = '12345'
        customer.country = 'USA'
        customer.phone_day = '5551112222'

        response = self.service.add_customer(customer)
        self.assertIsNotNone(response)
        self.assertIsNotNone(response.customer_key)
        self.__class__.customer_company_key = response.customer_key
コード例 #2
0
    def test_001_add_customer_person(self):
        customer = HpsPayPlanCustomer()
        customer.customer_identifier = self.get_identifier('Person')
        customer.first_name = 'John'
        customer.last_name = 'Doe'
        customer.customer_status = HpsPayPlanCustomerStatus.ACTIVE
        customer.primary_email = '*****@*****.**'
        customer.address_line_1 = '123 Main St'
        customer.city = 'Dallas'
        customer.state_province = 'TX'
        customer.zip_postal_code = '98765'
        customer.country = 'USA'
        customer.phone_day = '5551112222'

        response = self.service.add_customer(customer)
        self.assertIsNotNone(response)
        self.assertIsNotNone(response.customer_key)
        self.__class__.customer_person_key = response.customer_key
コード例 #3
0
    def test_001_add_customer_person(self):
        customer = HpsPayPlanCustomer()
        customer.customer_identifier = self.get_identifier('Person')
        customer.first_name = 'John'
        customer.last_name = 'Doe'
        customer.customer_status = HpsPayPlanCustomerStatus.ACTIVE
        customer.primary_email = '*****@*****.**'
        customer.address_line_1 = '123 Main St'
        customer.city = 'Dallas'
        customer.state_province = 'TX'
        customer.zip_postal_code = '98765'
        customer.country = 'USA'
        customer.phone_day = '5551112222'

        response = self.service.add_customer(customer)
        self.assertIsNotNone(response)
        self.assertIsNotNone(response.customer_key)
        self.__class__.customer_person_key = response.customer_key
コード例 #4
0
    def test_002_add_customer_company(self):
        customer = HpsPayPlanCustomer()
        customer.customer_identifier = self.get_identifier('Business')
        customer.company = 'AcmeCo'
        customer.customer_status = HpsPayPlanCustomerStatus.ACTIVE
        customer.primary_email = '*****@*****.**'
        customer.address_line_1 = '987 Elm St'
        customer.city = 'Princeton'
        customer.state_province = 'NJ'
        customer.zip_postal_code = '12345'
        customer.country = 'USA'
        customer.phone_day = '5551112222'

        response = self.service.add_customer(customer)
        self.assertIsNotNone(response)
        self.assertIsNotNone(response.customer_key)
        self.__class__.customer_company_key = response.customer_key