Implements google wallet api postback handling and fixes a javascript error