I don’t believe that is the problem … when I was fleshing this s all out, initially the front end code worked fine and read simply:
createMyPayment()
I needed to add the variable nameOfCollection in order to get the script to work in the particular site I was using it for though
I left out a bunch of the code for brevity, my code is based off the code in this tutorial: Velo Tutorial: Processing Payments | Help Center | Wix.com
… anyway …
I tried to edit the code
createMyPayment(productId, nameOFColection)
but that generates an error because productiD is undefined in the front end code …