added activateInvoice method