My IPN Listener gets a response from PayPal and should INSERT the transaction details into my database.
However it takes about 2 minutes for this to be actioned by which time my code has moved on and failed as there is no data to SELECT.
Trying again it works but picks up the data from the first attempt.
I also write to a log file and send a confirmation email which again wait for 2 minutes before being actioned.
I'm using PHP 8.2.23 PDO with 5.5.68-MariaDB. Any help would be greatly appreciated
I have modified my code to try and make it faster and had my hosting company tweak some PHP settings.I have checked my Listener against https://github.com/paypal/ipn-code-samples/blob/master/php/example_usage_advanced.php and it is identical.