mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
slow down web hook requests if the are too fast for usgit status
This commit is contained in:
parent
c64e9cc739
commit
98e82f3ea6
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user