An error has occurred

{{terminalError}}

3 of 3 free articles left. Subscribe for unlimited access.

2 of 3 free articles left. To continue, please provide your email address or subscribe for unlimited access.

1 of 3 free articles left. Subscribe for unlimited access.

Close Modal Close Modal
// This is the listener that will receive the post message from your front-end JS in case of an error. window.addEventListener("message", function (e) { // We verify that the error message is coming from Piano, so it must be what we're looking for. if (typeof e.data.piano != 'undefined') { // Get the object with the result. var result = e.data.piano; // We know how this object should be structured, so we're checking for the "success" field. // We're expecting it to be false, so we can show an error message. if (!result.success) { ga('send', 'event', 'piano-paywall-dec', 'piano-paywall-meerkat-signup-form-submit-non-subscriber', e.origin); // Append the text message into the block. $('.meerkat__title').addClass('hide'); $('.content__signup').addClass('hide'); $('#'+result.message).toggleClass('hide'); $('.content_button_block').toggleClass('hide'); } } return; }, false);