I just started to develop on woocommerce - wordpress
I am trying to make a payment gateway for my company.
Finally I could add my own payment gateway on woocommerce but that problem is after.
I tried to gather order details before payment is completed.

after this line; $order=new WC_Order( $order_id );
$order does not have any details about the order total and taxes etc.

I am not sure what i did wrong.
Could anyone explain how I can get the order details?

Read more here: Woo Commerce - Payment Gateway