From 0aa3a61f512a4931484db9db98d0e7919103d2b1 Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Mon, 2 Feb 2026 11:28:01 -0500 Subject: [PATCH] Update contents of idempotency key --- src/layouts/payment-adyen/payment-adyen.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/layouts/payment-adyen/payment-adyen.vue b/src/layouts/payment-adyen/payment-adyen.vue index 34a232e2c..f8abc12b7 100644 --- a/src/layouts/payment-adyen/payment-adyen.vue +++ b/src/layouts/payment-adyen/payment-adyen.vue @@ -589,7 +589,14 @@ export default { }, idempotencyKey() { - return `${this.$store.getters.order.referralCorrelationId}-${this.sourceSystem}`; + const currentDateTime = new Date(); + const currentHour = currentDateTime.getUTCHours(); + const currentDate = currentDateTime.getUTCDate(); + const id = this?.$store?.getters?.order?.referralCorrelationId; + const system = this.sourceSystem; + const total = this.adyenPriceTotal; + + return `${id}-${system}-${currentDate}-${currentHour}-${total}`; }, sourceSystem() {