You're correct in using class here.
<a class="button" id="btn-submit-payment">Submit Payment</a>
// function to make the button submit the payment
I would not want to use the class because it would execute this function for all elements with the button class. For example:
// cannot put the submit payment stuff here