add wc notice

This commit is contained in:
Kirill Braslavsky 2021-03-15 17:33:20 +02:00
parent edb0c9551c
commit 824e3a97c8

View file

@ -33,6 +33,11 @@ trait ProcessPaymentTrait {
$wc_order = wc_get_order( $order_id );
if ( ! is_a( $wc_order, \WC_Order::class ) ) {
wc_add_notice(
__('Couldn\'t find order to process', 'woocommerce-paypal-payments' ),
'error'
);
return $failure_data;
}