def METHOD_NAME(request, methodid, invoiceid, isreturn=None):
    invoice = get_object_or_404(Invoice, pk=invoiceid, deleted=False, finalized=True)
    if invoice.recipient_user != request.user:
        authenticate_backend_group(request, 'Invoice managers')
    return _invoice_payment(request, methodid, invoice, isreturn)