Merge pull request #3041 from Safelite/feature/CASH-2223
Update contents of idempotency key
This commit is contained in:
commit
99d44f9a99
1 changed files with 8 additions and 1 deletions
|
|
@ -589,7 +589,14 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
idempotencyKey() {
|
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() {
|
sourceSystem() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue