One of our payment gateway offers a installment payment plan.
They sent me some code that had to be inserted into the main-product.liquid file.
Surely it can be inserted in the editor using the ‘custom liquid’ block?
It seems like an awful lot of code for a simple instalment calculator.
Is it possible to edit the code below to work in the ‘custom liquid’ block?
This is the code they sent me:
<html>
<header>
<script src="[https://embed.payjustnow.com/product/js/product.js](https://embed.payjustnow.com/product/js/product.js)"></script>
<script>
function onLoad() {
setPJNProductAmounts( {{ product.price }} , 3);
}
</script>
</header>
<body onload="onLoad()">
<div id="pjn-product-container"></div>
<style>
.pjn-infolink {
display: table;
}
.pjn-container .pjn-text {
display: block;
}
</style>
</body>
</html>
