我需要将"value": 22
更改为变量precioServicio
的值,但无法更改。
var precioServicio = document.getElementById("precioServicio");
createOrder: function(data, actions) {
return actions.order.create({
purchase_units: [{"amount":{"currency_code":"USD","value":22}}] //PRECIO A PAGAR
});
},
将硬编码数字22
替换为。。。precioServicio
或document.getElementById("precioServicio")
您可以使用purchase_units:[{quot;amount":{">