Added function pay to the template factura