Today we got a few failmails due to a missing 'date' param during the Paypal PTR run.
civi1001:/var/log/process-control/paypal_pending_resolver/paypal_pending_resolver-20230317-125001.log
2023-03-17 12:50:04,774 ERROR Undefined index: date Api.php:138 [notice] 2023-03-17 12:50:05,417 ERROR WD php: TypeError: Return value of [error] 2023-03-17 12:50:05,417 INFO TypeError: Return value of Civi\Api4\Action\PendingTransaction\Resolve::startRecurringPaymentAndReturnStatus() must be of the type string, null returned in Civi\Api4\Action\Pendin gTransaction\Resolve->startRecurringPaymentAndReturnStatus() (line 654 of /srv/org.wikimedia.civicrm/drupal/sites/default/civicrm/extensions/wmf-civicrm/Civi/Api4/Action/PendingTransaction/Resolve.php). 2023-03-17 12:50:05,417 ERROR Civi\Api4\Action\PendingTransaction\Resolve::startRecurringPaymentAndReturnStatus() 2023-03-17 12:50:05,417 ERROR must be of the type string, null returned in 2023-03-17 12:50:05,417 ERROR Civi\Api4\Action\PendingTransaction\Resolve->startRecurringPaymentAndReturnStatus() 2023-03-17 12:50:05,417 ERROR (line 654 of 2023-03-17 12:50:05,417 ERROR /srv/org.wikimedia.civicrm/drupal/sites/default/civicrm/extensions/wmf-civicrm/Civi/Api4/Action/PendingTransaction/Resolve.php). 2023-03-17 12:50:05,418 ERROR Drush command terminated abnormally due to an unrecoverable error. [error] 2023-03-17 12:50:05,432 INFO ----------- end command output
It looks like we can fix this by passing in the missing 'date' param needed for the failing Smashpig call SmashPig Paypal/Api::createRecurringPaymentsProfile()