Reply
Member
Posts: 2
Registered: ‎05-08-2019

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 authorize.net create up to 100 buttons, but I have to have the products managed in our own CMS

Member
Posts: 1
Registered: ‎08-09-2019

Re: multiple buy now buttons not working

from the AcceptUI javascript link (https://jstest.authorize.net/v3/AcceptUI.js). 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)