Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $options = Jigoshop_Base::get_options();
     $this->id = 'jigoshop_worldpay';
     $this->icon = jigoshop::assets_url() . '/assets/images/icons/worldpay.png';
     $this->has_fields = false;
     $this->enabled = $options->get('jigoshop_worldpay_is_enabled');
     $this->title = $options->get('jigoshop_worldpay_method_title');
     $this->description = $options->get('jigoshop_worldpay_checkout_description');
     $this->testmode = $options->get('jigoshop_worldpay_test_mode');
     $this->installation_id = $options->get('jigoshop_worldpay_install_id');
     $this->fixed_currency = $options->get('jigoshop_worldpay_fixed_currency');
     $this->md5_encrypt = $options->get('jigoshop_worldpay_md5');
     $this->secret_word = $options->get('jigoshop_worldpay_md5_secret_word');
     $this->response_pass = $options->get('jigoshop_worldpay_response_password');
     $this->receive_err_log = $options->get('jigoshop_worldpay_receive_security_logs');
     $this->emailto_err_log = $options->get('jigoshop_worldpay_security_logs_emailto');
     $this->currency = $options->get('jigoshop_currency');
     $this->notify_url = jigoshop_request_api::query_request('?js-api=JS_Gateway_WorldPay', false);
     add_action('jigoshop_api_js_gateway_worldpay', array($this, 'check_worldpay_response'));
     add_action('admin_notices', array($this, 'worldpay_notices'));
     add_action('receipt_jigoshop_worldpay', array($this, 'receipt_page'));
     add_action('wp_footer', array($this, 'worldpay_script'));
 }
 function __construct()
 {
     parent::__construct();
     $options = Jigoshop_Base::get_options();
     $this->id = 'atom';
     $this->icon = IMGDIR . 'logo.png';
     $this->has_fields = false;
     $this->enabled = $options->get('jigoshop_atom_enabled');
     $this->urls = $options->get('jigoshop_atom_url');
     $this->merchant_id = $options->get('jigoshop_atom_merchant_id');
     $this->atom_password = $options->get('jigoshop_atom_password');
     $this->product_id = $options->get('jigoshop_atom_product_id');
     $this->port = $options->get('jigoshop_atom_port');
     $this->ssl_version = $options->get('jigoshop_atom_ssl');
     $this->notify_url = jigoshop_request_api::query_request('?js-api=JS_Gateway_Paynetz', false);
     // add_action('jigoshop_settings_scripts', array($this, 'admin_scripts'));
     add_action('jigoshop_api_js_gateway_paynetz', array($this, 'check_ipn_response'));
     add_action('receipt_paynetz', array($this, 'receipt_page'));
     add_action('init', array($this, 'legacy_ipn_response'));
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $options = Jigoshop_Base::get_options();
     $this->id = 'paypal';
     $this->icon = JIGOSHOP_URL . '/assets/images/icons/paypal.png';
     $this->has_fields = false;
     $this->enabled = $options->get('jigoshop_paypal_enabled');
     $this->title = $options->get('jigoshop_paypal_title');
     $this->email = $options->get('jigoshop_paypal_email');
     $this->description = $options->get('jigoshop_paypal_description');
     $this->force_payment = $options->get('jigoshop_paypal_force_payment');
     $this->testmode = $options->get('jigoshop_paypal_testmode');
     $this->testemail = $options->get('jigoshop_sandbox_email');
     $this->send_shipping = $options->get('jigoshop_paypal_send_shipping');
     $this->decimals = min($options->get('jigoshop_price_num_decimals'), in_array($options->get('jigoshop_currency'), self::$no_decimal_currencies) ? 0 : 2);
     $this->liveurl = 'https://www.paypal.com/webscr';
     $this->testurl = 'https://www.sandbox.paypal.com/webscr';
     $this->notify_url = jigoshop_request_api::query_request('?js-api=JS_Gateway_Paypal', false);
     add_action('jigoshop_settings_scripts', array($this, 'admin_scripts'));
     add_action('receipt_paypal', array($this, 'receipt_page'));
     add_action('jigoshop_api_js_gateway_paypal', array($this, 'check_ipn_response'));
     add_action('init', array($this, 'legacy_ipn_response'));
 }