Align error on final order submission
This commit is contained in:
parent
fa5ff6b58b
commit
3bfe0b2b43
3 changed files with 15 additions and 10 deletions
|
|
@ -444,15 +444,10 @@ export default {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(`error: response from submit work order: ${error.message}`);
|
console.log(`error: response from submit work order: ${error.message}`);
|
||||||
|
|
||||||
// navigate to error page
|
this.$router.navigateWithoutSaving(
|
||||||
const errorPayload = {
|
this.navigationScenarios.PIA_ERROR,
|
||||||
cause: `Error while submitting work order after Adyen payment.`,
|
this.pageName
|
||||||
currentPage: this.pageName,
|
);
|
||||||
sessionId: this.sessionId,
|
|
||||||
idempotencyKey: this.idempotencyKey,
|
|
||||||
};
|
|
||||||
|
|
||||||
this.$router.handleSoftError(errorPayload);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -578,6 +578,13 @@ const routingTable = function () {
|
||||||
scenario: navigationScenarios.CLICKED_FORWARD,
|
scenario: navigationScenarios.CLICKED_FORWARD,
|
||||||
destinationPageData: routeData.CONFIRMATION,
|
destinationPageData: routeData.CONFIRMATION,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
scenario: navigationScenarios.PIA_ERROR,
|
||||||
|
destinationPageData: routeData.PAYMENT_METHOD,
|
||||||
|
params: {
|
||||||
|
piaError: "true",
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,10 @@ export async function adyenReturnBeforeEnter(to, from) {
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
return {
|
return {
|
||||||
name: routeData.ERROR.name,
|
name: routeData.PAYMENT_METHOD.name,
|
||||||
|
query: {
|
||||||
|
piaError: "true",
|
||||||
|
},
|
||||||
replace: true,
|
replace: true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue