Paiement (UAT)

Paiement (UAT)

window.addEventListener("DOMContentLoaded", function() { var targetiframe = document.getElementById("payment"); var listener = function (event) { var cpmessage = event.data.split(':'); var cpvar = cpmessage[0]; if (cpvar == "height") { targetiframe.style.height = Math.round(cpmessage[1]) + 'px'; } else if (cpvar == "formError") { } } // Setup the listener. if (window.addEventListener) { addEventListener("message", listener, true); } else { attachEvent("onmessage", listener); } }, false);