Disable tracking if transaction ID doesn't exist

This commit is contained in:
Narek Zakarian 2023-09-25 17:11:27 +04:00
parent 8386f5045b
commit 40ac8fc54e
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -30,7 +30,7 @@ trait AdminContextTrait {
return false;
}
if ( ! $order->get_meta( PayPalGateway::ORDER_ID_META_KEY ) ) {
if ( ! $order->get_meta( PayPalGateway::ORDER_ID_META_KEY ) || empty( $order->get_transaction_id() ) ) {
return false;
}