The compensation of these attorneys for this service shall be 25 percent of the sums and amounts collected and received by the state, such compensation to be contingent upon collection and payment thereof to the state, with no further liability on the part of the state, and the amount of such compensation is hereby appropriated, payable upon the certificate of the attorney general filed with the commissioner of management and budget.