/**
  * Store renewal order in Taxamo
  *
  * @param WC_Order $renewal_order
  */
 public function store_renewal_order($renewal_order)
 {
     $taxamo_manager = new WC_TA_Taxamo_Manager();
     $taxamo_manager->store_transaction($renewal_order, true);
 }
 /**
  * Init the plugin
  *
  * @since  1.0.0
  * @access private
  *
  */
 private function init()
 {
     // Load plugin textdomain
     load_plugin_textdomain('woocommerce-taxamo', false, plugin_dir_path(self::get_plugin_file()) . 'languages/');
     // Setup the autoloader
     self::setup_autoloader();
     // The VAT number Field
     $vat_number_field = new WC_TA_Vat_Number_Field();
     $vat_number_field->setup();
     // Setup the Checkout VAT stuff
     $checkout_vat = new WC_TA_Checkout_Vat();
     $checkout_vat->setup();
     // Setup Taxamo manager
     $taxamo_manager = new WC_TA_Taxamo_Manager();
     $taxamo_manager->setup();
     // Admin only classes
     if (is_admin()) {
         // The admin E-Book Field
         $admin_ebook = new WC_TA_Admin_Ebook();
         $admin_ebook->setup();
         // Setup the reports
         $reports = new WC_TA_Reports();
         $reports->setup();
         // Filter plugin links
         add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'plugin_links'));
     }
     // Add Taxamo integration fields
     add_filter('woocommerce_integrations', array($this, 'load_integration'));
     // Enqueue scripts
     add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts'));
     // Subscriptions compatibility
     if (class_exists('WC_Subscriptions')) {
         $sc = new WC_TA_Subscriptions_Compatibility();
         $sc->setup_hooks();
     }
 }