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

Function switchPaymentTab

static/js/payment.js:2054–2063  ·  view source on GitHub ↗
(tab)

Source from the content-addressed store, hash-verified

2052}
2053
2054function switchPaymentTab(tab) {
2055 const isLink = tab === "link";
2056 document.getElementById("tab-btn-link")?.classList.toggle("active", isLink);
2057 document.getElementById("tab-btn-bind-task")?.classList.toggle("active", !isLink);
2058 document.getElementById("tab-content-link")?.classList.toggle("active", isLink);
2059 document.getElementById("tab-content-bind-task")?.classList.toggle("active", !isLink);
2060 if (!isLink) {
2061 loadBindCardTasks(true);
2062 }
2063}
2064
2065function getCheckoutPayload() {
2066 const accountId = Number(document.getElementById("account-select")?.value || 0);

Callers 2

payment.jsFile · 0.85
createBindCardTaskFunction · 0.85

Calls 2

loadBindCardTasksFunction · 0.85
toggleMethod · 0.80

Tested by

no test coverage detected