private function __construct()
 {
     // We only want to run the charge if the Token is set
     if (isset($_POST['stripeToken']) && isset($_POST['wp-simple-pay'])) {
         self::$token = true;
         add_action('init', array($this, 'charge_card'));
     }
     parent::load_library();
     add_filter('the_content', array($this, 'show_payment_details'), 11);
     add_filter('sc_payment_details_error', array($this, 'default_error_html'), 9, 2);
     add_filter('sc_meta_values', array($this, 'add_shipping_meta'));
     add_action('wp_ajax_scp_get_coupon', array($this, 'coup_ajax_check'));
     add_action('wp_ajax_nopriv_scp_get_coupon', array($this, 'coup_ajax_check'));
     add_filter('sc_meta_values', array($this, 'add_coupon_meta'));
     add_filter('sc_meta_values', array($this, 'sc_cf_checkout_meta'));
 }
 private function __construct()
 {
     // We only want to run the charge if the Token is set
     if (isset($_POST['stripeToken']) && isset($_POST['wp-simple-pay'])) {
         self::$token = true;
         add_action('init', array($this, 'charge_card'));
     }
     parent::load_library();
     // We need to remove the parent filter first so that we don't get a double success message output
     //remove_filter( 'the_content', array( 'Stripe_Checkout_Functions', 'show_payment_details' ), 10 );
     add_filter('the_content', array($this, 'show_payment_details'), 11);
     add_filter('sc_payment_details_error', array($this, 'default_error_html'), 9, 2);
     add_filter('sc_meta_values', array($this, 'add_shipping_meta'));
     add_action('wp_ajax_sc_coup_get_coupon', array($this, 'coup_ajax_check'));
     add_action('wp_ajax_nopriv_sc_coup_get_coupon', array($this, 'coup_ajax_check'));
     add_filter('sc_meta_values', array($this, 'add_coupon_meta'));
     add_filter('sc_meta_values', array($this, 'sc_cf_checkout_meta'));
     //add_filter( 'the_content', array( $this, 'sc_content_checking' ) );
 }