How to fetch order ID

I am developing payment plugin and for external API call I need to pass order ID. But seems there is no mantion in the manual how to fetch it. I can see

 $this-\>getOrderNumber(); function but it return null.