Added public id and mode vars to make it work correct for the Pronamic iDEAL plugin.