Skip to content

Instantly share code, notes, and snippets.

@JuaniVeltri
Created December 28, 2018 14:26
Show Gist options
  • Save JuaniVeltri/73f7b49469730faf770098cac7b65212 to your computer and use it in GitHub Desktop.
Save JuaniVeltri/73f7b49469730faf770098cac7b65212 to your computer and use it in GitHub Desktop.
WebCheckout Modal
<!DOCTYPE html>
<html>
<head>
<title>Pagar</title>
</head>
<body>
<a mp-mode="modal" href="<?php echo $preference->init_point; ?>">Pagar</a>
<script type="text/javascript">
(function(){function $MPC_load(){window.$MPC_loaded !== true && (function(){var s = document.createElement("script");s.type = "text/javascript";s.async = true;s.src = document.location.protocol+"//secure.mlstatic.com/mptools/render.js";var x = document.getElementsByTagName('script')[0];x.parentNode.insertBefore(s, x);window.$MPC_loaded = true;})();}window.$MPC_loaded !== true ? (window.attachEvent ?window.attachEvent('onload', $MPC_load) : window.addEventListener('load', $MPC_load, false)) : null;})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment