SSR-1063 payment response and cancel url updates

This commit is contained in:
Matt Caimi 2024-02-22 10:37:36 -05:00
parent 88eeaef09d
commit 70c1598ef8
2 changed files with 15 additions and 4 deletions

View file

@ -164,13 +164,13 @@ import siteHeader from '@/iss-components/site-header/site-header.vue';
import siteFooter from '@/iss-components/site-footer/site-footer.vue';
// Supporting files
import applicationConfig from '@/constants/application-config.js';
import issPageValues from '@/router/router-constants/issPage-values.js';
import { fetchCmsContentForPage } from '@/helpers/cms-content-helper';
import settleAllPromises from '@/helpers/layout-helper';
import { Form } from 'vee-validate';
import BaseFormMixin from '@/mixins/base-form-mixin.js';
import { useMainStore } from '@/store';
import iframeResize from 'iframe-resizer';
import iframeResize from 'iframe-resizer/js/iframeResizer.js';
import externalUrls from '@/router/router-constants/externalUrl-values.js';
import widgetFields from '@/constants/cms-widget-fields.js';
import { hopPaymentMethods, paymentMethods } from '@/constants/payment-method-constants.js';
@ -234,8 +234,6 @@ export default {
data() {
return {
checkoutUrl: externalUrls.SAFELITE_HOP,
payInAdvanceResponseUrl: applicationConfig.PAY_IN_ADVANCE_RESPONSE_URL,
payInAdvanceCancelUrl: applicationConfig.PAY_IN_ADVANCE_CANCEL_URL,
paymentType: this.getPaymentType(),
authToken: '',
authSignature: '',
@ -261,6 +259,18 @@ export default {
};
},
computed: {
payInAdvanceResponseUrl() {
const { protocol, host } = window.location;
return `${protocol}//${host}/?issPage=${
issPageValues.PAYMENT_RETURN
}&src=iss-nextgen`;
},
payInAdvanceCancelUrl() {
const { protocol, host } = window.location;
return `${protocol}//${host}/?issPage=${
issPageValues.PAYMENT_METHOD
}&src=iss-nextgen`;
},
dynamicCSSUrl() {
const { protocol, hostname, port } = window.location;
return `${protocol}//${hostname}:${port}/css/site-2020Styling.css`;

View file

@ -18,6 +18,7 @@ const issPageValues = Object.freeze({
ORDER_CONFIRMATION: 'order-confirmation',
PAYMENT_METHOD: 'payment-method',
PAYMENT_PAGE: 'payment-page',
PAYMENT_RETURN: 'payment-return',
PART_QUESTIONS: 'part-questions',
POLICY_HOLDER_DETAILS: 'policy-holder-details',
PROVIDER_PREFERENCE: 'provider-preference',