Set Message Information Set message data in invoice

Message details contains information about various messages to be displayed before footer, for example thank you message or remarks. You can easily set "message" data in invoice using setInvoiceMessage function or You can set message data directly by passing array using setInvoiceMessageData() function with "message" parameter. "Message" data normally includes "method", "note" etc. You can add or remove these fields.

                            $xinvoice = new Xinvoice();
                            //set message array
                            $message = array("thankyou" => "Thank you for your business", "note"=>"Lorem Ipsum is simply dummy text of the printing and typesetting industry");
                            //set message data 
                            echo $xinvoice->render();