public function __construct()
 {
     $this->id = 'paypalbraintree_paypal';
     parent::__construct();
     $this->icon = plugins_url('../assets/images/payments/PP_logo_h_100x26.png', __FILE__);
     $this->checkout_template = 'checkout/paypal-braintree-pay-with-paypal.php';
     $this->title = $this->get_option('title_paypal');
     $this->description = $this->get_option('description_paypal');
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     // Add subscription support
     $this->supports = array_merge($this->supports, array('subscriptions', 'subscription_cancellation', 'subscription_suspension', 'subscription_reactivation', 'subscription_amount_changes', 'subscription_date_changes', 'multiple_subscriptions', 'subscription_payment_method_change_admin', 'subscription_payment_method_change_customer'));
     // process renewals
     add_action('woocommerce_scheduled_subscription_payment_' . $this->id, array($this, 'scheduled_subscription_payment'), 10, 2);
     // filter javascript options
     add_filter('wc_gateway_paypal_braintree_data', array($this, 'filter_paypal_braintree_data'), 10);
 }
 /**
  * WC_Gateway_Paypal_Braintree_Pay_With_Card constructor.
  */
 public function __construct()
 {
     $this->id = 'paypalbraintree_cards';
     parent::__construct();
     /**
      * Filter the accepted credit card icons for Paypal Powered by Braintree.
      *
      * @param string $card_icons_url disployed on the checkout page.
      */
     $this->icon = apply_filters('wc_gateway_paypal_braintree_card_icons_image_url', plugins_url('../assets/images/payments/payment-method-cards.png', __FILE__));
     $this->checkout_template = 'checkout/paypal-braintree-pay-with-card.php';
     $this->title = $this->get_option('title_cards');
     $this->description = $this->get_option('description_cards');
 }