mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
add wc notice
This commit is contained in:
parent
edb0c9551c
commit
824e3a97c8
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue