Add #639 to changelog and log not getting PayPal order error

This commit is contained in:
dinamiko 2022-06-14 16:18:53 +02:00
parent ceb95952a9
commit 5a6113f714
3 changed files with 3 additions and 0 deletions

View file

@ -131,6 +131,7 @@ class AuthorizedPaymentsProcessor {
try {
$order = $this->paypal_order_from_wc_order( $wc_order );
} catch ( Exception $exception ) {
$this->logger->error( 'Could not get PayPal order from WC order: ' . $exception->getMessage() );
if ( $exception->getCode() === 404 ) {
return self::NOT_FOUND;
}