/** * Setup the Offline Payment module * * @author Jonathan Davis * @since 1.1 * * @return void **/ public function __construct() { parent::__construct(); // Reset the index count to shift setting indices so we don't break the JS environment if (isset($this->settings['label']) && is_array($this->settings['label'])) { $this->settings['label'] = array_merge(array(), $this->settings['label']); } if (isset($this->settings['instructions']) && is_array($this->settings['instructions'])) { $this->settings['instructions'] = array_merge(array(), $this->settings['instructions']); } // Scan and build a runtime index of active payment methods if (isset($this->settings['label']) && is_array($this->settings['label'])) { foreach ($this->settings['label'] as $i => $entry) { if (isset($this->settings['instructions']) && isset($this->settings['instructions'][$i])) { $this->methods[$entry] = $this->settings['instructions'][$i]; } } } add_filter('shopp_themeapi_checkout_offlineinstructions', array($this, 'instructions'), 10, 2); add_action('shopp_offlinepayment_sale', array($this, 'auth')); // Process sales as auth-only add_action('shopp_offlinepayment_auth', array($this, 'auth')); add_action('shopp_offlinepayment_capture', array($this, 'capture')); add_action('shopp_offlinepayment_refund', array($this, 'refund')); add_action('shopp_offlinepayment_void', array($this, 'void')); }
public function __construct() { parent::__construct(); $this->setup('sid', 'verify', 'secret', 'testmode'); add_filter('shopp_purchase_order_2checkout_processing', array($this, 'processing')); add_action('shopp_remote_payment', array($this, 'returned')); }
/** * Setup the TestMode gateway * * @since 1.1 * * @return void Description... **/ function __construct () { parent::__construct(); $this->setup('cards','error'); // Autoset useable payment cards $this->settings['cards'] = array(); foreach ($this->cards as $card) $this->settings['cards'][] = $card->symbol; }
function __construct () { parent::__construct(); $this->setup('sid','verify','secret','returnurl','testmode'); global $Ecart; $this->settings['returnurl'] = add_query_arg('rmtpay','process',ecarturl(false,'thanks',false)); add_action('ecart_txn_update',array(&$this,'notifications')); }
function __construct() { parent::__construct(); load_paymill(); // this function-call can and should be used whenever working with Paymill API $GLOBALS['paymill_loader']->paymill_errors->setFunction('paymill_shopp_errorHandling'); if (!isset($this->settings['label'])) { $this->settings['label'] = 'Paymill'; } add_action('shopp_paymillshopp_sale', array(&$this, 'sale')); // Process sales $GLOBALS['paymill_source']['shopp_version'] = SHOPP_VERSION; }
/** * Setup the TestMode gateway * * @author Jonathan Davis * @since 1.1 * * @return void **/ public function __construct() { parent::__construct(); $this->setup('cards', 'error'); // Autoset useable payment cards $this->settings['cards'] = array(); foreach ($this->cards as $card) { $this->settings['cards'][] = $card->symbol; } add_action('shopp_testmode_sale', array($this, 'sale')); add_action('shopp_testmode_auth', array($this, 'auth')); add_action('shopp_testmode_capture', array($this, 'capture')); add_action('shopp_testmode_refund', array($this, 'refund')); add_action('shopp_testmode_void', array($this, 'void')); }
function __construct() { parent::__construct(); add_filter('shopp_checkout_submit_button', array(&$this, 'submit'), 10, 3); if (version_compare(SHOPP_VERSION, '1.1.9', '>')) { add_action('shopp_billmateinvoice_sale', array(&$this, 'auth')); // Process sales as auth-only add_action('shopp_billmateinvoice_auth', array(&$this, 'auth')); add_action('shopp_billmateinvoice_capture', array(&$this, 'capture')); add_action('shopp_billmateinvoice_refund', array(&$this, 'refund')); add_action('shopp_billmateinvoice_void', array(&$this, 'void')); } add_action('wp_head', array(&$this, 'billmate_load_styles'), 6); add_action('wp_enqueue_scripts', array(&$this, 'billmate_load_scripts'), 6); add_action('shopp_order_success', array(&$this, 'success')); }
/** * Setup the Offline Payment module * * @since 1.1 * * @return void Description... **/ function __construct () { parent::__construct(); $this->setup('instructions'); // Reset the index count to shift setting indices so we don't break the JS environment if (isset($this->settings['label']) && is_array($this->settings['label'])) $this->settings['label'] = array_merge(array(),$this->settings['label']); if (isset($this->settings['instructions']) && is_array($this->settings['instructions'])) $this->settings['instructions'] = array_merge(array(),$this->settings['instructions']); // Scan and build a runtime index of active payment methods if (isset($this->settings['label']) && is_array($this->settings['label'])) { foreach ($this->settings['label'] as $i => $entry) if (isset($this->settings['instructions']) && isset($this->settings['instructions'][$i])) $this->methods[$entry] = $this->settings['instructions'][$i]; } add_filter('ecart_tag_checkout_offline-instructions',array(&$this,'tag_instructions'),10,2); add_filter('ecart_payment_methods',array(&$this,'methods')); }
/** * Constructs and initialize an iDEAL gateway module */ public function __construct() { parent::__construct(); // Setup $this->setup('config_id'); // Config ID $this->config_id = $this->settings['config_id']; // Order processing //add_filter('shopp_purchase_order_processing', array($this, 'orderProcessing'), 20, 2); // Checkout gateway inputs add_filter('shopp_checkout_gateway_inputs', array($this, 'inputs'), 50); // Actions // @see /shopp/core/model/Gateway.php#L122 $name = sanitize_key(__CLASS__); add_action('shopp_' . $name . '_sale', array($this, 'sale')); add_action('shopp_' . $name . '_auth', array($this, 'auth')); add_action('shopp_' . $name . '_capture', array($this, 'capture')); add_action('shopp_' . $name . '_refund', array($this, 'refund')); add_action('shopp_' . $name . '_void', array($this, 'void')); }
/** * Setup the ShoppFreeOrder gateway * * @author Jonathan Davis * @since 1.2 * * @return void **/ public function __construct() { parent::__construct(); $this->name = __('Free Order', 'Shopp'); add_action('shopp_freeorder_sale', array($this, 'capture')); add_action('shopp_freeorder_refund', array($this, 'void')); add_action('shopp_freeorder_void', array($this, 'void')); }
/** * Wrapper to call the framework send() method with the PayPal-specific server URL * * @author Jonathan Davis * @since 1.1 * * @param string $data * @param bool $url * @return string The response string from the request */ public function send($data, $url = false) { $options['httpversion'] = '1.1'; return parent::send($data, $this->url(), $options); }
function send ($message) { return parent::send($message,$this->url()); }
function send ($message) { $response = parent::send($message,$this->api()); return $this->response($response); }
function send ($message,$url) { $type = ($this->settings['testmode'] == "on")?'test':'live'; $url = sprintf($url[$type],$this->settings['id'],$this->settings['key'],$this->settings['id']); $response = parent::send($message,$url); return new xmlQuery($response); }
function send($message) { $url = $this->liveurl; if ($this->settings['testmode'] == "on") { $url = $this->testurl; } return parent::send($message, $url); }
function send ($data) { if ($this->settings['testmode'] == "on") $url = $this->testurl; else $url = $this->liveurl; $url = apply_filters('ecart_authorize_net_url',$url); return $this->response(parent::send($data,$url)); }