Buy Now button needs to pick up the dollar amount elsewhere (not entered manually)

tumalopete
Contributor
Contributor

I've made a very simple PayPal section that needs a little extra code to store a variable dollar amount generated by a user selecting various items. The total sum is calculated as a CSS variable "#totalCost" and want to make the line <input type="hidden" name="amount" value="totalCost.value" />  happy.  Obviously, this doesn't work. My entire career has been in software development but am new to HTML and Javascript, so please be kind...

Thanks

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.