()
| 713 | } |
| 714 | |
| 715 | function 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 | |
| 732 | function persistBillingProfileNonSensitive() { |
| 733 | const data = collectBillingFormData(); |
no test coverage detected