Skip to content

Instantly share code, notes, and snippets.

@akeem
Created August 1, 2019 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akeem/6d164e832fadf495f7dd128d8cafe442 to your computer and use it in GitHub Desktop.
Save akeem/6d164e832fadf495f7dd128d8cafe442 to your computer and use it in GitHub Desktop.
<html>
<head>
<script>
var unlockProtocolConfig = {
locks: {
"0xB0114bbDCe17e0AF91b2Be32916a1e236cf6034F": {
name: "One Week"
},
icon:
"https://staging-app.unlock-protocol.com/static/images/svg/default.svg",
callToAction: {
default:
"This content is locked. Pay with cryptocurrency to access it!"
}
};
</script>
<script>
function displayModal(){
window.unlockProtocol && window.unlockProtocol.loadCheckoutModal()
}
</script>
<script>
(function(d, s) {
var js = d.createElement(s),
sc = d.getElementsByTagName(s)[0];
js.src = "https://paywall.unlock-protocol.com/static/unlock.1.0.min.js";
sc.parentNode.insertBefore(js, sc);
})(document, "script");
</script>
</head>
<body>
<button onclick='displayModal()'>Display Checkout Modal</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment