‘Amount’ => number_format($order -> order_total, 2, ‘.’, ”),
‘CustRefID’ => $this->invoice_prefix . ltrim( $order->get_order_number(), ‘#’ ),
‘FullName’ => $order->billing_first_name . ” ” . $order->billing_last_name,
‘Company’ => $order->billing_company,
‘Address1’ => $order->billing_address_1,
‘Address2’ => $order->billing_address_2,
‘City’ => $order->billing_city,
‘State’ => $order->billing_state,
‘Zip’ => substr(str_replace(“-“,””,str_replace(” “,””, $order->billing_postcode)),0,9),
‘PhoneNumber’ => $bphone,
‘Email’ => $email,