Skip to content

Tag: payment-gateway

How to set amount of an item dynamically in javascript

I am trying to integrate a payment gateway on my website. Here is my code products.php main.js Now, the problem is that there are many products with different prices; but here I can only put a static amount (50000) which applies to all products when the action button is clicked. Is there any way I can dynamically get the price