function freesubscriptions() { parent::M_Gateway(); 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); add_filter('membership_subscription_form_subscription_process', array(&$this, 'signup_free_subscription'), 10, 2); } }
function paypalexpress() { parent::M_Gateway(); 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_paypal_return')); } }
function twocheckout() { parent::M_Gateway(); 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_2checkout_return')); add_filter('membership_gateway_exp_window', array(&$this, 'twocheckout_expiration_window')); add_action('membership_mark_for_expire', array(&$this, 'remove_recurring_line_item'), null, 2); } }
function bitpay() { // Update to work with latest 3.5.x Membership version // and keep backward compatibility with older versions as well if (class_exists('Membership_Gateway')) { return; } else { parent::M_Gateway(); add_action('M_gateways_settings_' . $this->gateway, array(&$this, 'mysettings')); 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')); } } }
function M_authorizenetaim() { global $M_membership_url; parent::M_Gateway(); 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')); add_action('membership_subscription_form_registration_process', array(&$this, 'force_ssl_cookie'), null, 2); if ($this->is_active()) { // Subscription form gateway add_action('membership_purchase_button', array(&$this, 'display_subscribe_button'), 1, 3); add_action('membership_payment_form', array(&$this, 'display_payment_form'), 10, 3); // Payment return add_action('membership_handle_payment_return_' . $this->gateway, array(&$this, 'handle_payment_return')); add_filter('membership_subscription_form_subscription_process', array(&$this, 'signup_subscription'), 10, 2); } }
function amazon() { parent::M_Gateway(); add_action('M_gateways_settings_' . $this->gateway, array(&$this, 'mysettings')); add_action('M_gateways_transactions_' . $this->gateway, array(&$this, 'mytransactions')); }