I'm not sure if there is already functionality around this implemented. A way to reinitialize the button would be great.
Use case; ajaxified site loads the cart page, or a portion thereof containing the payment button html. Button needs to be reinitialized once the new html is inserted.
Would something like running window.CraftWebPayments(); suffice?
I'm not sure if there is already functionality around this implemented. A way to reinitialize the button would be great.
Use case; ajaxified site loads the cart page, or a portion thereof containing the payment button html. Button needs to be reinitialized once the new html is inserted.
Would something like running
window.CraftWebPayments();
suffice?