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

Function setRandomBillingHint

static/js/payment.js:655–668  ·  view source on GitHub ↗
(message, mode = "info")

Source from the content-addressed store, hash-verified

653}
654
655function setRandomBillingHint(message, mode = "info") {
656 const hintEl = document.getElementById("random-billing-hint");
657 if (!hintEl) return;
658 hintEl.textContent = String(message || "");
659 if (mode === "success") {
660 hintEl.style.color = "var(--success-color)";
661 return;
662 }
663 if (mode === "error") {
664 hintEl.style.color = "var(--danger-color)";
665 return;
666 }
667 hintEl.style.color = "var(--text-secondary)";
668}
669
670async function randomBillingByCountry() {
671 const country = String(getInputValue("billing-country-input") || "US").toUpperCase();

Callers 2

randomBillingByCountryFunction · 0.85
bindBillingEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected