How to get Order ID to redirect the customer back and update order status from offsite payment porta

Hi

I have redirect the customer on offsite payment portal but conforming the payment how to redierct customer back. I have not Order ID to confirm the order status.

How to get order ID on offsite payment portal?

Thanks