()
| 644 | } |
| 645 | |
| 646 | function onBillingCountryChanged() { |
| 647 | const country = (document.getElementById("billing-country-input")?.value || "US").toUpperCase(); |
| 648 | const currencyEl = document.getElementById("billing-currency-input"); |
| 649 | if (!currencyEl) return; |
| 650 | if (!currencyEl.value || currencyEl.value === "USD" || currencyEl.value.length < 3) { |
| 651 | currencyEl.value = BILLING_COUNTRY_CURRENCY_MAP[country] || "USD"; |
| 652 | } |
| 653 | } |
| 654 | |
| 655 | function setRandomBillingHint(message, mode = "info") { |
| 656 | const hintEl = document.getElementById("random-billing-hint"); |
no outgoing calls
no test coverage detected