Beispiel #1
0
 /**
  * Constructs and intializes an ICEPAY gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Icepay_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Icepay_Config $config)
 {
     parent::__construct($config);
     // Default properties for this gateway
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(1.2);
     $this->set_slug('icepay');
 }
Beispiel #2
0
 /**
  * Constructs and initializes an Mollie gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Mollie_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Mollie_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(1.2);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_Mollie_Client($config->api_key);
 }
Beispiel #3
0
 /**
  * Constructs and initialize an Sisow gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Sisow_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Sisow_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     $this->client = new Pronamic_WP_Pay_Gateways_Sisow_Client($config->merchant_id, $config->merchant_key);
     $this->client->set_test_mode(Pronamic_IDeal_IDeal::MODE_TEST === $config->mode);
 }
Beispiel #4
0
 /**
  * Construct and intialize an iDEAL Easy gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Ogone_OrderStandardEasy_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Ogone_OrderStandardEasy_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(false);
     $this->set_amount_minimum(0.01);
     $this->client = new Pronamic_WP_Pay_Gateways_Ogone_OrderStandardEasy_Client($config->psp_id);
     $this->client->set_payment_server_url($config->get_form_action_url());
 }
Beispiel #5
0
 /**
  * Constructs and initializes an TargetPay gateway
  *
  * @param Pronamic_WP_Pay_Gateways_TargetPay_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_TargetPay_Config $config)
 {
     parent::__construct($config);
     $this->supports = array('payment_status_request');
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.84);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_TargetPay_Client();
 }
 /**
  * Constructs and initializes an MultiSafepay Connect gateway
  *
  * @param Pronamic_WP_Pay_Gateways_MultiSafepay_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_MultiSafepay_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_MultiSafepay_Connect_Client();
     $this->client->api_url = $config->api_url;
 }
Beispiel #7
0
 /**
  * Constructs and initializes an PayDutch gateway
  *
  * @param Pronamic_WP_Pay_Gateways_PayDutch_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_PayDutch_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(1.2);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_PayDutch_Client($config->username, $config->password);
     $this->client->set_test($config->mode == Pronamic_IDeal_IDeal::MODE_TEST);
 }
 /**
  * Constructs and initializes an Mollie gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Mollie_IDeal_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Mollie_IDeal_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(1.2);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_Mollie_IDeal_Client($config->partner_id);
     $this->client->set_test_mode(Pronamic_IDeal_IDeal::MODE_TEST === $config->mode);
 }
Beispiel #9
0
 /**
  * Constructs and initializes an Qantani gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Qantani_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Qantani_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(false);
     $this->set_amount_minimum(1.2);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_Qantani_Client();
     $this->client->set_merchant_id($config->merchant_id);
     $this->client->set_merchant_key($config->merchant_key);
     $this->client->set_merchant_secret($config->merchant_secret);
 }
Beispiel #10
0
 /**
  * Construct and intialize an gateway
  *
  * @param Pronamic_WP_Pay_Gateways_IDealBasic_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_IDealBasic_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(false);
     $this->set_amount_minimum(0.01);
     $this->client = new Pronamic_WP_Pay_Gateways_IDealBasic_Client();
     $this->client->set_payment_server_url($config->url);
     $this->client->set_merchant_id($config->merchant_id);
     $this->client->set_sub_id($config->sub_id);
     $this->client->set_hash_key($config->hash_key);
 }
Beispiel #11
0
 /**
  * Constructs and initializes an InternetKassa gateway
  *
  * @param Pronamic_WP_Pay_GatewayConfig $config
  */
 public function __construct(Pronamic_WP_Pay_GatewayConfig $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_Gateways_Adyen_Adyen();
     $this->client->set_payment_server_url($config->getPaymentServerUrl());
     $this->client->set_skin_code($config->get_buckaroo_skin_code());
     $this->client->set_merchant_account($config->get_buckaroo_merchant_account());
     $this->client->set_shared_secret($config->get_buckaroo_shared_secret());
 }
Beispiel #12
0
 /**
  * Constructs and initializes an Ogone DirectLink gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Ogone_DirectLink_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Ogone_DirectLink_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(1.2);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_Ogone_DirectLink_Client();
     $this->client->psp_id = $config->psp_id;
     $this->client->sha_in = $config->sha_in_pass_phrase;
     $this->client->user_id = $config->user_id;
     $this->client->password = $config->password;
     $this->client->api_url = $config->api_url;
 }
Beispiel #13
0
 /**
  * Constructs and initializes an Mollie gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Mollie_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Mollie_Config $config)
 {
     parent::__construct($config);
     $this->supports = array('payment_status_request', 'recurring_direct_debit', 'recurring_credit_card');
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(1.2);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_Mollie_Client($config->api_key);
     $this->client->set_mode($config->mode);
     if ('test' === $config->mode) {
         $this->meta_key_customer_id = '_pronamic_pay_mollie_customer_id_test';
     }
 }
Beispiel #14
0
 /**
  * Constructs and initializes an Buckaroo gateway
  *
  * @param Pronamic_WP_Pay_Buckaroo_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Buckaroo_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Buckaroo_Client();
     $this->client->set_website_key($config->website_key);
     $this->client->set_secret_key($config->secret_key);
     if (Pronamic_IDeal_IDeal::MODE_TEST === $config->mode) {
         $this->client->set_payment_server_url(Pronamic_WP_Pay_Buckaroo_Client::GATEWAY_TEST_URL);
     }
 }
Beispiel #15
0
 /**
  * Constructs and initializes an InternetKassa gateway
  *
  * @param Pronamic_WordPress_IDeal_Configuration $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Ogone_OrderStandard_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_Ogone_OrderStandard_Client($this->config->psp_id);
     $this->client->set_payment_server_url($config->url);
     $this->client->set_pass_phrase_in($config->sha_in_pass_phrase);
     $this->client->set_pass_phrase_out($config->sha_out_pass_phrase);
     if (!empty($config->hash_algorithm)) {
         $this->client->set_hash_algorithm($config->hash_algorithm);
     }
 }
Beispiel #16
0
 /**
  * Constructs and initializes an iDEAL Advanced v3 gateway
  *
  * @param Pronamic_WP_Pay_Gateways_IDealAdvancedV3_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_IDealAdvancedV3_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     // Client
     $client = new Pronamic_WP_Pay_Gateways_IDealAdvancedV3_Client();
     $client->set_acquirer_url($config->url);
     $client->merchant_id = $config->merchant_id;
     $client->sub_id = $config->sub_id;
     $client->private_key = $config->private_key;
     $client->private_key_password = $config->private_key_password;
     $client->private_certificate = $config->private_certificate;
     $this->client = $client;
 }
Beispiel #17
0
 /**
  * Constructs and initializes an Buckaroo gateway
  *
  * @param Pronamic_WP_Pay_Gateways_Buckaroo_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Buckaroo_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_Buckaroo_Client();
     $this->client->set_website_key($config->website_key);
     $this->client->set_secret_key($config->secret_key);
     $this->client->set_excluded_services($config->excluded_services);
     $this->client->set_invoice_number($config->invoice_number);
     if ('test' === $config->mode) {
         $this->client->set_payment_server_url(Pronamic_WP_Pay_Gateways_Buckaroo_Client::GATEWAY_TEST_URL);
     }
 }
 /**
  * Constructs and initializes an EMS e-Commerce gateway
  *
  * @param Pronamic_WP_Pay_Gateways_EMS_ECommerce_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_EMS_ECommerce_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     // Client
     $this->client = new Pronamic_WP_Pay_Gateways_EMS_ECommerce_Client();
     $action_url = Pronamic_WP_Pay_Gateways_EMS_ECommerce_Client::ACTION_URL_PRODUCTION;
     if (Pronamic_IDeal_IDeal::MODE_TEST === $config->mode) {
         $action_url = Pronamic_WP_Pay_Gateways_EMS_ECommerce_Client::ACTION_URL_TEST;
     }
     $this->client->set_action_url($action_url);
     $this->client->set_storename($config->storename);
     $this->client->set_secret($config->secret);
 }
Beispiel #19
0
 /**
  * Constructs and initializes an OmniKassa gateway
  *
  * @param Pronamic_WP_Pay_Gateways_OmniKassa_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_OmniKassa_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     // Client
     $this->client = new Pronamic_WP_Pay_Gateways_OmniKassa_Client();
     $action_url = Pronamic_WP_Pay_Gateways_OmniKassa_Client::ACTION_URL_PRUDCTION;
     if (Pronamic_IDeal_IDeal::MODE_TEST === $config->mode) {
         $action_url = Pronamic_WP_Pay_Gateways_OmniKassa_Client::ACTION_URL_TEST;
     }
     $this->client->set_action_url($action_url);
     $this->client->set_merchant_id($config->merchant_id);
     $this->client->set_key_version($config->key_version);
     $this->client->set_secret_key($config->secret_key);
 }
Beispiel #20
0
 /**
  * Constructs and initializes an InternetKassa gateway
  *
  * @param Pronamic_WordPress_IDeal_Configuration $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_Ogone_OrderStandard_Config $config)
 {
     parent::__construct($config);
     $this->supports = array('payment_status_request');
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTML_FORM);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     $this->set_slug(self::SLUG);
     $this->client = new Pronamic_WP_Pay_Gateways_Ogone_OrderStandard_Client($this->config->psp_id);
     $this->client->set_payment_server_url($config->get_form_action_url());
     $this->client->set_direct_query_url($config->get_direct_query_url());
     $this->client->set_pass_phrase_in($config->sha_in_pass_phrase);
     $this->client->set_pass_phrase_out($config->sha_out_pass_phrase);
     $this->client->set_user_id($config->user_id);
     $this->client->set_password($config->password);
     if (!empty($config->hash_algorithm)) {
         $this->client->set_hash_algorithm($config->hash_algorithm);
     }
 }
Beispiel #21
0
 /**
  * Constructs and initializes an iDEAL Advanced gateway
  *
  * @param Pronamic_WP_Pay_Gateways_IDealAdvanced_Config $config
  */
 public function __construct(Pronamic_WP_Pay_Gateways_IDealAdvanced_Config $config)
 {
     parent::__construct($config);
     $this->set_method(Pronamic_WP_Pay_Gateway::METHOD_HTTP_REDIRECT);
     $this->set_has_feedback(true);
     $this->set_amount_minimum(0.01);
     // Client
     $client = new Pronamic_WP_Pay_Gateways_IDealAdvanced_Client();
     $client->setAcquirerUrl($config->directory_request_url);
     $client->merchant_id = $config->merchant_id;
     $client->sub_id = $config->sub_id;
     $client->setPrivateKey($config->private_key);
     $client->setPrivateKeyPassword($config->private_key_password);
     $client->setPrivateCertificate($config->private_certificate);
     $client->directory_request_url = $config->directory_request_url;
     $client->transaction_request_url = $config->transaction_request_url;
     $client->status_request_url = $config->status_request_url;
     foreach ($config->certificates as $certificate) {
         $client->addPublicCertificate($certificate);
     }
     $this->client = $client;
 }
 /**
  * Get input HTML
  *
  * ING Kassa Compleet does not present a payment screen to the customer if no payment method is set,
  * so we use iDEAL as default payment method to make the 'Test' meta box work.
  *
  * @see Pronamic_WP_Pay_Gateway::get_input_html()
  */
 public function get_input_html()
 {
     $payment_method = $this->get_payment_method();
     if (empty($payment_method)) {
         $this->set_payment_method(Pronamic_WP_Pay_PaymentMethods::IDEAL);
     }
     return parent::get_input_html();
 }