affirm.ui.refresh(); affirm.ui.ready(function(){ affirm.ui.refresh(); }); //Add to an existing callback that fires when the price updates priceUpdateEventHandler(){ changePriceHandler(newPrice); } function updateAffirmPromos(newPrice){ //Update the wrapper elements' attributes in the DOM document.getElementById('affirmProductModal').setAttribute('data-amount',newPrice); document.getElementById('affirmLearnMore').setAttribute('data-amount',newPrice); //Call affirm.ui.refresh to re-render the promotional messaging componenets affirm.ui.refresh(); }
top of page

My cart

Cart is empty

bottom of page