"properties should not be accessed directly" issue during WooCommerce 3.0 checkout
PHP Snippet 1:
$OrderID= ( WC()->version < '2.7.0' ) ? $order->id : $order->get_id();
$shipping_country = ( WC()->version < '2.7.0' ) ? $order->shipping_country : $order->get_shipping_country();