I'm facing an issue with regards to the Visa Checkout button on SPA environments.
I found that the VCO SDK only binds elements thas is already loaded on the page searching by the v-button class. I'm using SPA on my application, and because of that the button don't have the event to trigger.
Have you guys faced this issue? Have an idea how to solve it?
Once you load it in runtime, it would work for those components that is already on the DOM.
However, if you add any button after that in run time, it wouldn’t have the event on this new button.
I’m using angular 2, and I’m avoiding to inject the script every page that has the button. Otherwise I would need to inject on the load and remove when the page changes, to be able to inject again after the other page loads.
It would be great if the SDK would have a method that, when runs, it would map every v-button again.