Merge pull request #4052 from expsa/dev_odex25_donation
Dev odex25 donation
This commit is contained in:
commit
6220480546
|
|
@ -47,7 +47,7 @@ var wpwlOptions = {
|
||||||
let applepayButton = $("apple-pay-button");
|
let applepayButton = $("apple-pay-button");
|
||||||
let totalAmount = $("#order_total > td.text-xl-right > strong", window.parent.document);
|
let totalAmount = $("#order_total > td.text-xl-right > strong", window.parent.document);
|
||||||
if (totalAmount && totalAmount.length > 0){
|
if (totalAmount && totalAmount.length > 0){
|
||||||
totalAmount = totalAmount[0].text().replaceAll(",", "");
|
totalAmount = $(totalAmount[0]).text().replaceAll(",", "");
|
||||||
}
|
}
|
||||||
window.wpwlOptions.applePay.total.amount = totalAmount;
|
window.wpwlOptions.applePay.total.amount = totalAmount;
|
||||||
console.log("Apple Pay Amount updated to:", window.wpwlOptions.applePay.total.amount);
|
console.log("Apple Pay Amount updated to:", window.wpwlOptions.applePay.total.amount);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue