Showing results for 
Search instead for 
Did you mean: 

multiple buy now buttons not working

On my page, I have 2 - 3 buy now buttons which pop up the payment modal created by 

AcceptUI.js. The problem is, it only binds to the first button. So a couple of questions:


1) First and foremost, is there a way to have multiple buttons?

2) If the answer to #1 is no, can I dynamically create a button after they chose the option they want or do I have to have the button exist when the page is rendered.


I know there is an option where I can have create up to 100 buttons, but I have to have the products managed in our own CMS


from the AcceptUI javascript link ( it get's only the first button with AcceptUI class as this document.getElementsByClassName("AcceptUI")[0]

This should be a loop of all items because many wants to have multiple buttons with differant options (differant merchant/credit card/bank account/top and bottom of checkout page, etc)