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

Function queryEfun3ds

static/js/payment.js:1902–1921  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1900}
1901
1902async function queryEfun3ds() {
1903 const config = collectEfunConfig();
1904 if (!config.code) {
1905 toast.warning("请先填写 CDK 激活码");
1906 return;
1907 }
1908 try {
1909 const data = await callEfunApi("3ds/verify", {
1910 code: config.code,
1911 base_url: config.base_url,
1912 api_key: config.api_key,
1913 minutes: config.minutes || 30,
1914 });
1915 setEfunResult(data?.data || data);
1916 toast.success("3DS 查询完成");
1917 } catch (error) {
1918 setEfunResult(`3DS 查询失败: ${formatErrorMessage(error)}`, true);
1919 toast.error(`3DS 查询失败: ${formatErrorMessage(error)}`);
1920 }
1921}
1922
1923async function cancelEfunCard() {
1924 const config = collectEfunConfig();

Callers

nothing calls this directly

Calls 7

collectEfunConfigFunction · 0.85
callEfunApiFunction · 0.85
setEfunResultFunction · 0.85
formatErrorMessageFunction · 0.85
warningMethod · 0.80
successMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected