From 98e82f3ea65fb8f98715844ba5ae4825e7ed9201 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 3 Aug 2021 07:40:42 +1000 Subject: [PATCH] slow down web hook requests if the are too fast for usgit status --- app/Http/Requests/Payments/PaymentWebhookRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/Payments/PaymentWebhookRequest.php b/app/Http/Requests/Payments/PaymentWebhookRequest.php index ea11d0af2056..50bc276c14ae 100644 --- a/app/Http/Requests/Payments/PaymentWebhookRequest.php +++ b/app/Http/Requests/Payments/PaymentWebhookRequest.php @@ -74,9 +74,9 @@ class PaymentWebhookRequest extends Request { // For testing purposes we'll slow down the webhook processing by 2 seconds // to make sure webhook request doesn't came before our processing. - if (app()->environment() !== 'production') { + //if (app()->environment() !== 'production') { sleep(2); - } + //} // Some gateways, like Checkout, we can dynamically pass payment hash, // which we will resolve here and get payment information from it.