public function __construct()
 {
     parent::__construct();
     $options = Jigoshop_Base::get_options();
     // Prepare configs
     $this->icon = PW_JIGO_PLUGIN_URL . '/assets/images/brick_logo.png';
     $this->enabled = $options->get('jigoshop_brick_enabled');
     $this->title = $options->get('jigoshop_brick_title');
     $this->public_key = $options->get('jigoshop_brick_public_key');
     $this->private_key = $options->get('jigoshop_brick_private_key');
     $this->public_test_key = $options->get('jigoshop_brick_public_test_key');
     $this->private_test_key = $options->get('jigoshop_brick_private_test_key');
     $this->description = $options->get('jigoshop_brick_description');
     $this->testmode = $options->get('jigoshop_brick_testmode');
     $this->currency = $options->get('jigoshop_currency');
     //$this->notify_url = jigoshop_request_api::query_request('?js-api=jigoshop_brick', false);
     add_action('receipt_' . $this->id, array($this, 'receipt_page'));
 }
 public function __construct()
 {
     parent::__construct();
     $options = Jigoshop_Base::get_options();
     // Prepare configs
     $this->icon = PW_JIGO_PLUGIN_URL . '/assets/images/paymentwall_logo.png';
     $this->enabled = $options->get('jigoshop_paymentwall_enabled');
     $this->title = $options->get('jigoshop_paymentwall_title');
     $this->appkey = $options->get('jigoshop_paymentwall_app_key');
     $this->secretkey = $options->get('jigoshop_paymentwall_secret_key');
     $this->widget = $options->get('jigoshop_paymentwall_widget');
     $this->description = $options->get('jigoshop_paymentwall_description');
     $this->thankyoutext = $options->get('jigoshop_paymentwall_thankyoutext');
     $this->successurl = $options->get('jigoshop_paymentwall_successurl');
     $this->testmode = $options->get('jigoshop_paymentwall_testmode');
     $this->delivery = $options->get('jigoshop_paymentwall_delivery');
     $this->currency = $options->get('jigoshop_currency');
     //$this->notify_url = jigoshop_request_api::query_request('?js-api=jigoshop_paymentwall', false);
     add_action('init', array($this, 'check_ipn_response'));
     add_action('receipt_' . $this->id, array($this, 'receipt_page'));
 }