Set the amount dynamically in paymentform.js

Hello, there is a way to set the amount dynamically in paymentform.js.
in the cardNonceResponseReceived function: function (errors, nonce, cardData)

that I can send you another parameter for example
cardNonceResponseReceived: function (errors, nonce, cardData, amount, other)

estoy haciendo prueba con una cuenta de scanbox

Hi @ovelit welcome to the forums!

The payment form actually doesn’t need to know anything about the amount you plan on charging. The amount is handled on the backend when you call CreatePayment. The payment form simply generates a nonce based on the card data you enter in the form.