Exemplo n.º 1
0
 /**
  * Initialize the 2CheckOut gateway
  *
  * @param none
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     // Some default values of the class
     $this->gatewayUrl = 'https://www.2checkout.com/checkout/purchase';
     $this->ipnLogFile = '2co.ipn_results.log';
 }
Exemplo n.º 2
0
 /**
  * Initialize the Paypal gateway
  *
  * @param none
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     // Some default values of the class
     $this->gatewayUrl = 'https://www.paypal.com/cgi-bin/webscr';
     $this->ipnLogFile = 'paypal.ipn_results.log';
     // Populate $fields array with a few default
     $this->addField('rm', '2');
     // Return method = POST
     $this->addField('cmd', '_xclick');
 }
Exemplo n.º 3
0
 /**
  * Initialize the Authorize.net gateway
  *
  * @param none
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     // Some default values of the class
     $this->gatewayUrl = 'https://secure.authorize.net/gateway/transact.dll';
     if (defined('WP_ESTORE_PATH')) {
         $this->ipnLogFile = WP_ESTORE_PATH . 'authorize.ipn_results.log';
     } else {
         $this->ipnLogFile = 'authorize.ipn_results.log';
     }
     // Populate $fields array with a few default
     $this->addField('x_Version', '3.1');
     $this->addField('x_Show_Form', 'PAYMENT_FORM');
     $this->addField('x_Relay_Response', 'TRUE');
 }