Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleHere we provide an example of a script that will allow buyers to see the entire payment page within the boundaries of the existing iFrame.

After injecting the suggested script into the <header> , the width of the content will adapt to the dimensions of the iFrame.

Code Block
languagexml
<script>
    window.addEventListener('message', receiveMessage, false);
 
    function receiveMessage(event){    
        document.getElementById("iframe_name"). width = event.data.body.scrollWidth;
        document.getElementById("iframe_name"). width = event.data.body.scrollWidth;
    }
</script>




Warning

Information is updated due to work on payment pages changing.

...