Starting the Apply Flow
Prerequisites
The code requires the SDK or Ecom Plugin to be loaded in the current page.
<img id="my-chargeafter-apply-button" src="https://progleasing.com/sites/progleasingsite/files/prog-web-11-205x42-Apply-Now-Wh02.jpg">
<style>
#my-chargeafter-apply-button{
cursor: pointer;
}
</style>
<script>
window.addEventListener('DOMContentLoaded', () => {
document.getElementById('my-chargeafter-apply-button').addEventListener('click', () => {
const opt = { };
ChargeAfter.apply.present(opt);
})
});
</script>
Updated 12 days ago