(message, mode = "info")
| 653 | } |
| 654 | |
| 655 | function 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 | |
| 670 | async function randomBillingByCountry() { |
| 671 | const country = String(getInputValue("billing-country-input") || "US").toUpperCase(); |
no outgoing calls
no test coverage detected