MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / onBillingCountryChanged

Function onBillingCountryChanged

static/js/payment.js:646–653  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644}
645
646function 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
655function setRandomBillingHint(message, mode = "info") {
656 const hintEl = document.getElementById("random-billing-hint");

Callers 3

fillBillingFormFunction · 0.85
bindBillingEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected