Can't open order from Notify URL menu callback
Hi drupal commerce team,
I'm writing a payment module that is located in an iframe. The actual payment is received in an external server and i get the authorization on a Notify URL.
The url is mapped to a function in the payment module but the callback itself is done from the credit card payment company.
My problem is that the function crushes at $order = commerce_order_load($order_id); with no apparent reason.
what do i need to fix to make commerce_order_load to load the order?
(if it makes any difference the order is in status cart_review and is still open in another window)
Thanks in advance,