Posted: August 31, 2023 at 7:43 am
Have an intermittent issue where PayPal Commerce is not displaying approved transactions in the dashboard even though the completed payment shows in PayPal. PayPal is set to auto-return to site after successful payment. It shows as pending payment in the dashboard, does not appear on the CSV Registration Report. Happened 2 times since August 8. Not finding the transactions in the logs under Payment Methods >> Logs and not finding any errors in the server logs either. Any ideas as to what might be causing the issue or how to debug/track down? Would it help to turn on the Gateway Logs Lifespan? |
|
This reply has been marked as private. | |
Are they not shown in Event Espresso at all? If you go to Event Espresso -> Registrations, search for registrations by name, do they show up? |
|
The person’s name shows up when performing a search for registrations or by going to the title of the event and clicking on the registration link. The registration does indicate that it is Pending Approval even though the PayPal account has received the funds and is completed. |
|
Great, so the registration is being recorded but its not being set to Approved.
I understand. So that can happen for a few reasons, if you find the registration using the above and click on the TXN Date column it will open up the transaction. Click on the ‘view additional transaction session details’ link there. What does it show for the finalize registration step, like this: https://monosnap.com/file/GZit9zfvjZMwDpXc5ObbxMJA1QWAx7 |
|
This reply has been marked as private. | |
Right ok, so that means the user got to the payment options and selected PayPal Commerce, paid through PayPal in the modal that pops up but then the site didn’t get any kind of indication from PayPal that a payment had been made. So then the payment options step didn’t finalize and the user didn’t go to the Finalize registration step (which is what processes the payment response and finalizes all of the steps to mark the registration as Approved). Have you checked the server’s error logs around the time that registration was made to confirm there weren’t any fatal errors thrown on the requests? You could try enabling the payment method logs, that’s what I would start with, however, if the requests are making it to the site then nothing will be logged either way. |
|
Had 2 transactions occur within a minute of each other. Wrong transaction was marked as paid in PayPal. Person 1: Received confirmation of payment with payment showing in PayPal account but did not receive any confirmation of successful registration. Dashboard is showing they abandoned their registration and payment pending. Person 2: Received confirmation of successful registration and payment completion but no payment in PayPal account. Person 2 says he abandoned his registration after he got to the payment page. Found this error in server log – FastCGI sent in stderr: “PHP message: PHP Warning: foreach() argument must be of type array|object, null given in /www/xxx/public/wp-admin/includes/plugin.php on line 1784” while reading response header from upstream, client: xx.xx.xx.xx, server: xxx.org, request: “POST /wp-admin/admin-ajax.php HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-xxx.sock:”, host: “xxx.org:40739”, referrer: “https://xxx.org/registration-checkout/?uts=1694012724 Any ideas? |
|
Hmm, looking over your site I can see your using Kinsta and I know from previous threads they have server side caching. Can you double-check with them that all of the EE critical pages have been excluded from that caching? What type of hosting are you using with them? —-
That’s from this code: https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/plugin.php#L1781-L1792 It doesn’t relate to the issue you’ve mentioned above, something is removing a menu item when the menu hasn’t been set and its throwing a warning, tats not going to cause the error mentioned. |
|
Thanks Tony. Kinsta has turned off all caching for these pages. /registration-cancelled/ Hopefully that will resolve the issue related to the transactions. Will work on identifying the other issue. |
|
You may want to add your events slug to that, usually:
You’ll find it in Event Espresso -> Events -> Templates -> Events slug. |
|
The support post ‘PayPal Commerce Not Recording Successful Transactions’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.