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

Function collectBillingFormData

static/js/payment.js:715–730  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

713}
714
715function collectBillingFormData() {
716 const expiry = parseExpiryInput(getInputValue("card-expiry-input"));
717 return {
718 card_number: getInputValue("card-number-input").replace(/\D/g, ""),
719 exp_month: expiry.exp_month,
720 exp_year: expiry.exp_year,
721 cvc: getInputValue("card-cvc-input").replace(/\D/g, ""),
722 billing_name: getInputValue("billing-name-input"),
723 country_code: getInputValue("billing-country-input").toUpperCase(),
724 currency: getInputValue("billing-currency-input").toUpperCase(),
725 address_line1: getInputValue("billing-line1-input"),
726 address_city: getInputValue("billing-city-input"),
727 address_state: getInputValue("billing-state-input"),
728 postal_code: getInputValue("billing-postal-input"),
729 };
730}
731
732function persistBillingProfileNonSensitive() {
733 const data = collectBillingFormData();

Callers 3

saveCurrentAsTemplateFunction · 0.85
createBindCardTaskFunction · 0.85

Calls 2

parseExpiryInputFunction · 0.85
getInputValueFunction · 0.85

Tested by

no test coverage detected