function __construct()
 {
     parent::__construct();
     add_action('scheduled_subscription_payment_' . $this->id, array(&$this, 'scheduled_subscription_payment'), 10, 3);
     add_filter('woocommerce_subscriptions_renewal_order_meta_query', array(&$this, 'remove_renewal_order_meta'), 10, 4);
     add_action('woocommerce_subscriptions_changed_failing_payment_method_stripe', array(&$this, 'update_failing_payment_method'), 10, 3);
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     if (class_exists('WC_Subscriptions_Order')) {
         add_action('scheduled_subscription_payment_' . $this->id, array($this, 'scheduled_subscription_payment'), 10, 3);
         add_filter('woocommerce_subscriptions_renewal_order_meta_query', array($this, 'remove_renewal_order_meta'), 10, 4);
         add_action('woocommerce_subscriptions_changed_failing_payment_method_stripe', array($this, 'update_failing_payment_method'), 10, 3);
         // display the current payment method used for a subscription in the "My Subscriptions" table
         add_filter('woocommerce_my_subscriptions_recurring_payment_method', array($this, 'maybe_render_subscription_payment_method'), 10, 3);
     }
     if (class_exists('WC_Pre_Orders_Order')) {
         add_action('wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array($this, 'process_pre_order_release_payment'));
     }
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     if (class_exists('WC_Subscriptions_Order')) {
         add_action('woocommerce_scheduled_subscription_payment_' . $this->id, array($this, 'scheduled_subscription_payment'), 10, 2);
         add_action('wcs_resubscribe_order_created', array($this, 'delete_resubscribe_meta'), 10);
         add_action('wcs_renewal_order_created', array($this, 'delete_renewal_meta'), 10);
         add_action('woocommerce_subscription_failing_payment_method_updated_stripe', array($this, 'update_failing_payment_method'), 10, 2);
         // display the credit card used for a subscription in the "My Subscriptions" table
         add_filter('woocommerce_my_subscriptions_payment_method', array($this, 'maybe_render_subscription_payment_method'), 10, 2);
         // allow store managers to manually set Stripe as the payment method on a subscription
         add_filter('woocommerce_subscription_payment_meta', array($this, 'add_subscription_payment_meta'), 10, 2);
         add_filter('woocommerce_subscription_validate_payment_meta', array($this, 'validate_subscription_payment_meta'), 10, 2);
     }
     if (class_exists('WC_Pre_Orders_Order')) {
         add_action('wc_pre_orders_process_pre_order_completion_payment_' . $this->id, array($this, 'process_pre_order_release_payment'));
     }
 }
 public function __construct()
 {
     parent::__construct();
 }
 function __construct()
 {
     parent::__construct();
     add_action('complete_sponsorship_payment_' . $this->id, array(&$this, 'complete_sponsorship_payment'), 10, 3);
 }