public function __construct() { 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_paypal_return')); add_filter('membership_subscription_form_subscription_process', array(&$this, 'signup_free_subscription'), 10, 2); } }
/** * Constructs and initliaze an Membership iDEAL gateway */ public function __construct() { parent::__construct(); // @see http://plugins.trac.wordpress.org/browser/membership/tags/3.4.4.1/membershipincludes/gateways/gateway.freesubscriptions.php#L30 // @see http://plugins.trac.wordpress.org/browser/membership/tags/3.4.4.1/membershipincludes/classes/class.gateway.php#L97 if ($this->is_active()) { add_action('init', array($this, 'maybe_pay')); // @see http://plugins.trac.wordpress.org/browser/membership/tags/3.4.4.1/membershipincludes/includes/payment.form.php#L78 add_action('membership_purchase_button', array($this, 'purchase_button'), 1, 3); // Status update $slug = Pronamic_WP_Pay_Extensions_WPMUDEV_Membership_Extension::SLUG; add_action("pronamic_payment_status_update_{$slug}", array($this, 'status_update'), 10, 2); } }
/** * Constructs and initliaze an Membership iDEAL gateway */ public function __construct() { parent::__construct(); $this->id = constant(get_class($this) . '::ID'); if (!isset($this->name)) { $this->name = __('Pronamic', 'pronamic_ideal'); } // @see http://plugins.trac.wordpress.org/browser/membership/tags/3.4.4.1/membershipincludes/gateways/gateway.freesubscriptions.php#L30 // @see http://plugins.trac.wordpress.org/browser/membership/tags/3.4.4.1/membershipincludes/classes/class.gateway.php#L97 if (Pronamic_WP_Pay_Extensions_WPMUDEV_Membership_Membership::is_active()) { add_action('init', array($this, 'maybe_pay')); // @see http://plugins.trac.wordpress.org/browser/membership/tags/3.4.4.1/membershipincludes/includes/payment.form.php#L78 add_action('membership_purchase_button', array($this, 'purchase_button'), 1, 3); add_action('ms_gateway_changed_' . $this->id, array($this, 'update_settings')); } }
public function __construct() { parent::__construct(); add_action('M_gateways_settings_' . $this->gateway, array(&$this, 'mysettings')); // https://sandbox.2checkout.com/checkout/purchase if (get_option($this->gateway . "_twocheckout_status") != 'live') { $this->tco_url = "https://sandbox.2checkout.com"; } // 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 __construct() { parent::__construct(); add_action('M_gateways_settings_' . $this->gateway, array(&$this, 'mysettings')); 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); // Ajax calls for purchase buttons - if logged out add_action('wp_ajax_nopriv_purchaseform', array(&$this, 'popover_payment_form')); // if logged in add_action('wp_ajax_purchaseform', array(&$this, 'popover_payment_form')); // Ajax calls for purchase processing - if logged out add_action('wp_ajax_nopriv_processpurchase_' . $this->gateway, array(&$this, 'process_payment_form')); // if logged in add_action('wp_ajax_processpurchase_' . $this->gateway, array(&$this, 'process_payment_form')); } }
/** * Constructor. * * @since 3.5 * * @access public */ public function __construct() { parent::__construct(); $this->_add_action('M_gateways_settings_' . $this->gateway, 'render_settings'); $this->_add_action('membership_purchase_button', 'render_subscribe_button', 10, 3); $this->_add_action('membership_payment_form_' . $this->gateway, 'render_payment_form', 10, 3); $this->_add_action('membership_expire_subscription', 'cancel_subscription_transactions', 10, 3); $this->_add_action('membership_drop_subscription', 'drop_subscription_transactions', 10, 3); $this->_add_action('membership_move_subscription', 'capture_next_transaction', 10, 6); $this->_add_filter('membership_unsubscribe_subscription', 'process_unsubscribe_subscription', 10, 3); $this->_add_action('wp_enqueue_scripts', 'enqueue_scripts'); $this->_add_action('wp_login', 'propagate_ssl_cookie', 10, 2); $this->_add_action('wpmu_delete_user', 'save_cim_profile_id'); $this->_add_action('delete_user', 'save_cim_profile_id'); $this->_add_action('deleted_user', 'delete_cim_profile'); $this->_add_ajax_action('processpurchase_' . $this->gateway, 'process_purchase', true, true); $this->_add_ajax_action('purchaseform', 'render_popover_payment_form'); }