Set Payment Information Set payment label in invoice

Payment details contains information about what was the mode of payment, any note or any other details related to payment. You can easily set "payment" label in invoice using setInvoicePayment function or You can set payment label directly by passing array using setInvoicePaymentLabel() function with "payment" parameter. "Payment" label normally includes "method", "note" etc. You can add or remove these fields.

  
                            $xinvoice = new Xinvoice();
                            //set payment array
                            $payment = array("method" => "Payment method: ", "note"=>"Important Note: ");
                            //set payment label 
                            $xinvoice->setInvoicePaymentLabel($payment);            
                            echo $xinvoice->render();