The finance software company spent years teaching machines to match payments with invoices. Now it is putting a share of its fees on the results.