From f03c6a1d6b7816ed6f50a1bfbaea8ae1e72a1587 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 17 Jun 2024 21:29:31 +1000 Subject: [PATCH] Roll back for idempotency --- app/Http/Requests/Payment/StorePaymentRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/Payment/StorePaymentRequest.php b/app/Http/Requests/Payment/StorePaymentRequest.php index f0e617a12eba..34bba9f648af 100644 --- a/app/Http/Requests/Payment/StorePaymentRequest.php +++ b/app/Http/Requests/Payment/StorePaymentRequest.php @@ -129,9 +129,9 @@ class StorePaymentRequest extends Request $input['date'] = now()->addSeconds($user->company()->utc_offset())->format('Y-m-d'); } - // if (! isset($input['idempotency_key'])) { + if (! isset($input['idempotency_key'])) { $input['idempotency_key'] = substr(time()."{$input['date']}{$input['amount']}{$credits_total}{$this->client_id}{$user->company()->company_key}", 0, 64); - // } + } $this->replace($input); }