Add process order error messages

This commit is contained in:
dinamiko 2022-01-27 16:40:02 +01:00
parent fc5589612c
commit 74490c40c9
2 changed files with 5 additions and 3 deletions

View file

@ -141,6 +141,7 @@ class OrderProcessor {
public function process( \WC_Order $wc_order ): bool {
$order = $this->session_handler->order();
if ( ! $order ) {
$this->last_error = __('No PayPal order found in the current WooCommerce session.', 'woocommerce-paypal-payments');
return false;
}