Is there a way to dynamically change the value of "value": 22
in the code snippet below to be equal to the variable precioServicio
? Unfortunately, I am unable to directly modify it.
var precioServicio = document.getElementById("precioServicio");
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{"amount":{"currency_code":"USD","value":22}}] //PRECIO A PAGAR
});
},