I am using $order->add_order_note( $note ); in my payment gateway plugin to send custom private order note to new orders.
But its sending customer order notes again when i refresh/reload thank you (order received) page
is there any conditional tag or function that i can use to send custom order notes only once for new orders.
means check if its a newly created order (once)