Update contents of idempotency key
This commit is contained in:
parent
6fd564dca1
commit
0aa3a61f51
1 changed files with 8 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue