Any expenses necessarily incurred in any criminal proceeding or prosecution, except such expenses as are incurred by the Division of Criminal Justice, when approved by the court in which the proceeding or prosecution is had, shall be paid in the same manner as are other expenses of maintenance of the court. The court may allow the payment of any fees charged by such court by means of a credit card, charge card or debit card and may charge the person making such payment a service fee for any such payment made by any such card. The fee shall not exceed any charge by the card issuer, including any discount rate.