How to get bill amount from set of items for a Payment gateway api

I have got a HTML api from razorpay But it has a parameter data-amount""
I want that the cart total to come atomatically there…
please Help me you can call me/whatsapp on +91-8788655877