Add session data, function in order_id and better checking for gateway IP

Signed-off-by: Fadion Dashi <jonidashi@gmail.com>