Add generate method to connector and invoice
Fix payment object