slow down web hook requests if the are too fast for usgit status

This commit is contained in:
David Bomba 2021-08-03 07:40:42 +10:00
parent c64e9cc739
commit 98e82f3ea6

View File

@ -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.