Retrieving the customer's information on payment checkout

I am doing some custom coding in the paypal-express.php, and I want to be able to retrieve the customer’s information (e.g. name, telephone number). I’ve tried with the following code but it doesn’t work..any help?

$sql = “SELECT * FROM wp_”.$bid.”_posts where post_title = ‘”.$orderId.”‘”;

$getProducts = $wpdb->get_row($sql,ARRAY_A);

$productDetails = $getProducts;

$cId = $productDetails;

$customerDetails = get_userdata( $cId );

$customerName = $customerDetails->user_login;

$billingSerialize = get_user_meta($cId,’mp_shipping_info’,true);

$customerBillingAddress = $billingSerialize;

$customerBillingPhone = $billingSerialize;