Add order notes.

This commit is contained in:
Pedro Silva 2024-03-04 15:20:35 +00:00
parent ef5dc3a9f5
commit da8d566560
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3

View file

@ -666,6 +666,10 @@ class WCGatewayModule implements ModuleInterface {
$admin_notices->persist( new Message( $message, 'error' ) );
} else {
$admin_notices->persist( new Message( 'Payment reauthorized.', 'info' ) );
$wc_order->add_order_note(
__( 'Payment reauthorized.', 'woocommerce-paypal-payments' )
);
}
}
);