function __construct() { // Update to work with latest 3.5.x Membership version // and keep backward compatibility with older versions as well if (!class_exists('Membership_Gateway')) { $this->bitpay(); } else { parent::__construct(); add_action('M_gateways_settings_' . $this->gateway, array(&$this, 'mysettings')); // If I want to override the transactions output - then I can use this action //add_action('M_gateways_transactions_' . $this->gateway, array(&$this, 'mytransactions')); if ($this->is_active()) { // Subscription form gateway add_action('membership_purchase_button', array(&$this, 'display_subscribe_button'), 1, 3); // Payment return add_action('membership_handle_payment_return_' . $this->gateway, array(&$this, 'handle_bitpay_return')); } } }