Page MenuHomePhabricator

Pending Transaction Resolver: Payment is not awaiting approval - current status: pending / timeout
Closed, ResolvedPublic

Description

We added some extra logging to the pending transaction resolver to help determine when it exits early due to processing transactions that have already been captured. However, when inspecting the logs this morning, I noticed that it's exiting early for transactions that have unexpected statuses, such as 'pending' and 'timeout' Let's confirm that we don't wanna follow up in these cases.

Examples:

# /var/log/process-control/gravy_pending_resolver/gravy_pending_resolver-20250907-182001.log hits: 1
# Results written to /home/jgleeson/logdog/Payment_is_not/gravy_pending_resolver-20250907-182001.log.txt
2025-09-07 18:22:49,163	ERROR	civicrm.wmf.INFO: Payment is not awaiting approval - current status: pending for order_id: 235295512.1  
# Scanning files: 42% (4804/11300)
# /var/log/process-control/gravy_pending_resolver/gravy_pending_resolver-20250908-024001.log hits: 1
# Results written to /home/jgleeson/logdog/Payment_is_not/gravy_pending_resolver-20250908-024001.log.txt
2025-09-08 02:41:42,306	ERROR	civicrm.wmf.INFO: Payment is not awaiting approval - current status: pending for order_id: 235322945.1  
# Scanning files: 42% (4805/11300)
# /var/log/process-control/gravy_pending_resolver/gravy_pending_resolver-20250907-152001.log hits: 1
# Results written to /home/jgleeson/logdog/Payment_is_not/gravy_pending_resolver-20250907-152001.log.txt
2025-09-07 15:21:52,422	ERROR	civicrm.wmf.INFO: Payment is not awaiting approval - current status: pending for order_id: 235279986.1  
# /var/log/process-control/paypal_pending_resolver/paypal_pending_resolver-20250908-012001.log hits: 1
# Results written to /home/jgleeson/logdog/Payment_is_not/paypal_pending_resolver-20250908-012001.log.txt
2025-09-08 01:20:06,143	ERROR	civicrm.wmf.INFO: Payment is not awaiting approval - current status: timeout for order_id: 235320078.1  
# Scanning files: 58% (6580/11300)
# /var/log/process-control/paypal_pending_resolver/paypal_pending_resolver-20250908-092002.log hits: 1
# Results written to /home/jgleeson/logdog/Payment_is_not/paypal_pending_resolver-20250908-092002.log.txt
2025-09-08 09:20:06,633	ERROR	civicrm.wmf.INFO: Payment is not awaiting approval - current status: timeout for order_id: 235339601.1  
# Scanning files: 58% (6581/11300)
# /var/log/process-control/paypal_pending_resolver/paypal_pending_resolver-20250907-153001.log hits: 1
# Results written to /home/jgleeson/logdog/Payment_is_not/paypal_pending_resolver-20250907-153001.log.txt
2025-09-07 15:30:06,486	ERROR	civicrm.wmf.INFO: Payment is not awaiting approval - current status: timeout for order_id: 235280107.1  
# Scanning files: 58% (6582/11300)
# /var/log/process-control/paypal_pending_resolver/paypal_pending_resolver-20250908-031001.log hits: 1
# Results written to /home/jgleeson/logdog/Payment_is_not/paypal_pending_resolver-20250908-031001.log.txt
2025-09-08 03:10:04,878	ERROR	civicrm.wmf.INFO: Payment is not awaiting approval - current status: timeout for order_id: 235323588.1

Event Timeline

AKanji-WMF triaged this task as Medium priority.Sep 8 2025, 8:23 PM
AKanji-WMF moved this task from Triage to Chaos Crew Backlog on the Fundraising-Backlog board.
Ejegg subscribed.

Confirmed that it's working as intended - the only status that we can actually do anything about is pending-poke.

  • 'pending' that means the donor has not taken the steps we need to move forward, in this case, that they have not authorized the payment in the PayPal UI
  • 'timeout' means that the session token is no longer valid
Damilare set Final Story Points to 1.