/**
  * @return EEG_New_Payment_Method_Offsite
  */
 public function __construct()
 {
     //if the gateway you are integrating with sends a separate instant-payment-notification request
     //(instead of sending payment information along with the user)
     //set this to TRUE
     $this->set_uses_separate_IPN_request(false);
     parent::__construct();
 }
コード例 #2
0
 /**
  * Constructs and initialize iDEAL gateway
  *
  * @param EEM_Gateways $model
  */
 public function __construct(EEM_Gateways $model)
 {
     $this->_gateway_name = 'pronamic_pay_ideal';
     $this->_path = str_replace('\\', '/', __FILE__);
     $this->_btn_img = plugins_url('images/ideal/ee-4-icon.png', Pronamic_WP_Pay_Plugin::$file);
     // @see https://github.com/eventespresso/event-espresso-core/blob/4.2.2.reg/core/db_classes/EE_Offsite_Gateway.class.php#L4
     // @see https://github.com/eventespresso/event-espresso-core/blob/4.2.2.reg/core/db_classes/EE_Gateway.class.php#L26
     parent::__construct($model);
 }
コード例 #3
0
 protected function __construct(EEM_Gateways &$model)
 {
     $this->_gateway_name = 'Paypal_Standard';
     $this->_button_base = 'paypal-logo.png';
     $this->_path = str_replace('\\', '/', __FILE__);
     $this->addField('rm', '2');
     // Return method = POST
     $this->addField('cmd', '_xclick');
     parent::__construct($model);
     if (!$this->_payment_settings['use_sandbox']) {
         $this->_gatewayUrl = 'https://www.paypal.com/cgi-bin/webscr';
     } else {
         $this->_gatewayUrl = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
     }
 }
 /**
  * @return EEG_Paypal_Standard
  */
 public function __construct()
 {
     $this->set_uses_separate_IPN_request(true);
     parent::__construct();
 }