Merge branch 'trunk' into PCP-417-new-feature---pay-upon-invoice

This commit is contained in:
dinamiko 2022-06-16 11:12:41 +02:00
commit 0262549382
5 changed files with 4 additions and 21 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;
}