Use wp_nonce_field. $woocommerce->nonce_field is deprecated.