Change size of 3DSecure iFrame in CopyandPay

Follow

Use case

The standard size of 3D Secure is:

  • width: 400px 
  • height: 800px

Some issuers don't follow this rule and the size may differ.

Solution

Example:

COPYandPAY: Change iFrame Size Collapse source
<script src="https://code.jquery.com/jquery.js" ></script>
<script type="text/javascript">
    var cnp_Options = {
        iFrameSize: {width: 400, height: 580} // resize 3D Secure IFRAME
    }  
</script>

 

Have more questions? Submit a request

Comments

Powered by Zendesk