diff --git a/src/constants/application-config.js b/src/constants/application-config.js index b4c0d9a1e..91a56ae10 100644 --- a/src/constants/application-config.js +++ b/src/constants/application-config.js @@ -11,12 +11,12 @@ const applicationConfig = { SITE_ENTRY_TRIGGER_VALUE: "FixMyGlass", CASH_PARENT_ACCOUNT_NUMBER: 167132, MY_ACCOUNT: process.env.VUE_APP_MY_ACCOUNT, - PAYPAL_SUCCESS_URL: + PIA_RESPONSE_URL: location.protocol + "//" + location.host + "/fmg/?fmgPage=payment-pia-return&src=concept-funnel", - PAYPAL_CANCEL_URL: + PIA_CANCEL_URL: location.protocol + "//" + location.host + diff --git a/src/constants/query-strings.js b/src/constants/query-strings.js index 1bff7bf46..40f3a2242 100644 --- a/src/constants/query-strings.js +++ b/src/constants/query-strings.js @@ -1,3 +1,4 @@ +// Note: querystring-helper will change all keys to lowercase so make sure they are here as well const queryStrings = { FMG_PAGE: "fmgPage", START_TYPE: "start_type", @@ -6,6 +7,18 @@ const queryStrings = { ERROR: "error", TOKEN: "token", PAYERID: "payerid", + SUBSCRIPTIONID: "subscriptionid", + REFERRAL_SEQ_NUM: "referralseqnum", + CARD_EXPIRATION_MONTH: "card_expirationmonth", + CARD_EXPIRATION_YEAR: "card_expirationyear", + CARD_TYPE: "sgcardtype", + BILL_TO_POSTAL_CODE: "billto_postalcode", + BILL_TO_FIRST_NAME: "billto_firstname", + BILL_TO_LAST_NAME: "billto_lastname", + REFERENCE_NUMBER: "req_reference_number", + AUTH_CODE: "auth_code", + TRANSACTION_ID: "transaction_id", + TRANS_REFERENCE_NUMBER: "auth_trans_ref_no", }; export { queryStrings }; diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index cc1c90d61..9801ef22e 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -92,6 +92,7 @@ const storeActions = { SAVE_WORK_ORDER_FLAG: "saveWorkOrderFlag", SAVE_PIA_ERROR_CODE: "savePiaErrorCode", SAVE_PIA_WORK_ORDER: "savePiaWorkOrder", + SAVE_CCTOKEN: "saveCCToken", }; export { storeActions }; diff --git a/src/constants/store-mutations.js b/src/constants/store-mutations.js index f5f2ca432..2b2efae64 100644 --- a/src/constants/store-mutations.js +++ b/src/constants/store-mutations.js @@ -1,7 +1,9 @@ const storeMutations = { + // PAYMENT MUTATIONS UPDATE_WORK_ORDER_FLAG: "updateWorkOrderFlag", UPDATE_PIA_ERROR_CODE: "updatePiaErrorCode", UPDATE_PIA_WORK_ORDER: "updatePiaWorkOrder", + UPDATE_CCTOKEN: "updateCCToken", // VEHICLE MUTATIONS UPDATE_YEAR: "updateYear", diff --git a/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue b/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue index 9cb256f5d..4240e3514 100644 --- a/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue +++ b/src/fmg-components/add-vaps-modal-buttons/add-vaps-modal-buttons.vue @@ -91,6 +91,7 @@ export default { answer.SubText = "+$" + this.wipersPrice; answers.push(answer); } + if (this.showAddRainDefense) { const answer = getAnswer("RainDefenseModal", this.answersCmsData); answer.SubText = "+$" + this.rainDefensePrice; diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index 7107e64e8..cca06cbca 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -7,12 +7,14 @@ @click="toggleClass()">