Pre Approval Buttons
When Katapult plugin or Javascript is available for checkout
Overview
To add a pre approval button to your javascript development complete the following steps.
Place Katapult Pre Approval Button
Place a button with class btn-katapult-preapprove
on the pages where you want the Katapult pre-approval functionality to be available. Clicking this button will load the Katapult pre-approval form.
You may use one of our Katapult buttons to allow customers to get pre approved on your website.
<a class="btn-katapult-preapprove" id="btn-katapult" href="javascript:void(0)"></a>
Initialize Pre approval
the preapproval process when the button is clicked.
<script>
document.getElementById("btn-katapult").addEventListener("click", function() {
katapult.preapprove();
});
</script>
Updated 7 months ago