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

Function collectVendorConfig

static/js/payment.js:1646–1654  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1644}
1645
1646function collectVendorConfig() {
1647 const checkoutUrl = getInputValue("vendor-checkout-input");
1648 const redeemCode = normalizeVendorRedeemCode(getInputValue("vendor-redeem-input"));
1649 setInputValue("vendor-redeem-input", redeemCode);
1650 return {
1651 checkout_url: checkoutUrl,
1652 redeem_code: redeemCode,
1653 };
1654}
1655
1656function normalizeVendorRedeemCode(raw) {
1657 const compact = String(raw || "").toUpperCase().replace(/[^A-Z0-9]/g, "").slice(0, 16);

Callers

nothing calls this directly

Calls 3

getInputValueFunction · 0.85
setInputValueFunction · 0.85

Tested by

no test coverage detected