SSR-1063 payment response and cancel url updates
This commit is contained in:
parent
88eeaef09d
commit
70c1598ef8
2 changed files with 15 additions and 4 deletions
|
|
@ -164,13 +164,13 @@ import siteHeader from '@/iss-components/site-header/site-header.vue';
|
||||||
import siteFooter from '@/iss-components/site-footer/site-footer.vue';
|
import siteFooter from '@/iss-components/site-footer/site-footer.vue';
|
||||||
|
|
||||||
// Supporting files
|
// 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 { fetchCmsContentForPage } from '@/helpers/cms-content-helper';
|
||||||
import settleAllPromises from '@/helpers/layout-helper';
|
import settleAllPromises from '@/helpers/layout-helper';
|
||||||
import { Form } from 'vee-validate';
|
import { Form } from 'vee-validate';
|
||||||
import BaseFormMixin from '@/mixins/base-form-mixin.js';
|
import BaseFormMixin from '@/mixins/base-form-mixin.js';
|
||||||
import { useMainStore } from '@/store';
|
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 externalUrls from '@/router/router-constants/externalUrl-values.js';
|
||||||
import widgetFields from '@/constants/cms-widget-fields.js';
|
import widgetFields from '@/constants/cms-widget-fields.js';
|
||||||
import { hopPaymentMethods, paymentMethods } from '@/constants/payment-method-constants.js';
|
import { hopPaymentMethods, paymentMethods } from '@/constants/payment-method-constants.js';
|
||||||
|
|
@ -234,8 +234,6 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
checkoutUrl: externalUrls.SAFELITE_HOP,
|
checkoutUrl: externalUrls.SAFELITE_HOP,
|
||||||
payInAdvanceResponseUrl: applicationConfig.PAY_IN_ADVANCE_RESPONSE_URL,
|
|
||||||
payInAdvanceCancelUrl: applicationConfig.PAY_IN_ADVANCE_CANCEL_URL,
|
|
||||||
paymentType: this.getPaymentType(),
|
paymentType: this.getPaymentType(),
|
||||||
authToken: '',
|
authToken: '',
|
||||||
authSignature: '',
|
authSignature: '',
|
||||||
|
|
@ -261,6 +259,18 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
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() {
|
dynamicCSSUrl() {
|
||||||
const { protocol, hostname, port } = window.location;
|
const { protocol, hostname, port } = window.location;
|
||||||
return `${protocol}//${hostname}:${port}/css/site-2020Styling.css`;
|
return `${protocol}//${hostname}:${port}/css/site-2020Styling.css`;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ const issPageValues = Object.freeze({
|
||||||
ORDER_CONFIRMATION: 'order-confirmation',
|
ORDER_CONFIRMATION: 'order-confirmation',
|
||||||
PAYMENT_METHOD: 'payment-method',
|
PAYMENT_METHOD: 'payment-method',
|
||||||
PAYMENT_PAGE: 'payment-page',
|
PAYMENT_PAGE: 'payment-page',
|
||||||
|
PAYMENT_RETURN: 'payment-return',
|
||||||
PART_QUESTIONS: 'part-questions',
|
PART_QUESTIONS: 'part-questions',
|
||||||
POLICY_HOLDER_DETAILS: 'policy-holder-details',
|
POLICY_HOLDER_DETAILS: 'policy-holder-details',
|
||||||
PROVIDER_PREFERENCE: 'provider-preference',
|
PROVIDER_PREFERENCE: 'provider-preference',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue