create_address( $customer[ $type ]['address_1'], $customer[ $type ]['address_2'], $customer[ $type ]['country'], $customer[ $type ]['state'] ?? '', $customer[ $type ]['city'] ?? '', $customer[ $type ]['postcode'] ); return $this->create_customer( $customer_address, $customer[ $type ]['email'] ?? $customer['billing']['email'], $customer[ $type ]['phone'] ?? $customer['billing']['phone'], $customer[ $type ]['first_name'] ?? $customer['billing']['first_name'], $customer[ $type ]['last_name'] ?? $customer['billing']['last_name'], ( new QrOrder() )->get_customer_ip_address() ?? '', ( new QrOrder() )->get_user_agent() ?? '', $customer[ $type ]['company'] ?? $customer['billing']['company'], ); } }