Merge pull request #3041 from Safelite/feature/CASH-2223

Update contents of idempotency key
This commit is contained in:
chloeherdsafelite 2026-02-02 11:43:52 -05:00 committed by GitHub
commit 99d44f9a99
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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() {