function paymill_elv() { parent::paymill_abstract(); global $order; $this->code = 'paymill_elv'; $this->title = MODULE_PAYMENT_PAYMILL_ELV_TEXT_TITLE; $this->public_title = MODULE_PAYMENT_PAYMILL_ELV_TEXT_PUBLIC_TITLE; $this->privateKey = trim(MODULE_PAYMENT_PAYMILL_ELV_PRIVATEKEY); $this->fastCheckout = new FastCheckout($this->privateKey); if (defined('MODULE_PAYMENT_PAYMILL_ELV_STATUS')) { $this->enabled = MODULE_PAYMENT_PAYMILL_ELV_STATUS == 'True' ? true : false; $this->sort_order = MODULE_PAYMENT_PAYMILL_ELV_SORT_ORDER; $this->logging = MODULE_PAYMENT_PAYMILL_ELV_LOGGING == 'True' ? true : false; $this->webHooksEnabled = MODULE_PAYMENT_PAYMILL_ELV_WEBHOOKS == 'True' ? true : false; $this->preauth = false; $this->publicKey = MODULE_PAYMENT_PAYMILL_ELV_PUBLICKEY; $this->fastCheckoutFlag = MODULE_PAYMENT_PAYMILL_ELV_FASTCHECKOUT == 'True' ? true : false; $this->payments = new Services_Paymill_Payments($this->privateKey, $this->apiUrl); $this->clients = new Services_Paymill_Clients(trim($this->privateKey), $this->apiUrl); if ((int) MODULE_PAYMENT_PAYMILL_ELV_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_PAYMILL_ELV_ORDER_STATUS_ID; } if ($this->logging) { $this->description .= '<a href="' . tep_href_link('paymill_logging.php') . '">PAYMILL Log</a>'; } if ($this->webHooksEnabled) { $type = 'ELV'; $this->displayWebhookButton($type); } } if (is_object($order)) { $this->update_status(); } }
function paymill_cc() { parent::paymill_abstract(); $this->fastCheckout = new FastCheckout(trim(MODULE_PAYMENT_PAYMILL_CC_PRIVATEKEY)); global $order; $this->code = 'paymill_cc'; $this->title = MODULE_PAYMENT_PAYMILL_CC_TEXT_TITLE; $this->public_title = MODULE_PAYMENT_PAYMILL_CC_TEXT_PUBLIC_TITLE; if (defined('MODULE_PAYMENT_PAYMILL_CC_STATUS')) { $this->enabled = MODULE_PAYMENT_PAYMILL_CC_STATUS == 'True' ? true : false; $this->sort_order = MODULE_PAYMENT_PAYMILL_CC_SORT_ORDER; $this->privateKey = trim(MODULE_PAYMENT_PAYMILL_CC_PRIVATEKEY); $this->logging = MODULE_PAYMENT_PAYMILL_CC_LOGGING == 'True' ? true : false; $this->webHooksEnabled = MODULE_PAYMENT_PAYMILL_CC_WEBHOOKS == 'True' ? true : false; $this->publicKey = MODULE_PAYMENT_PAYMILL_CC_PUBLICKEY; $this->fastCheckoutFlag = MODULE_PAYMENT_PAYMILL_CC_FASTCHECKOUT == 'True' ? true : false; $this->pciShowIframe = MODULE_PAYMENT_PAYMILL_CC_PCI_MODE == 'PayFrame (min. PCI SAQ A)' ? true : false; $this->payments = new Services_Paymill_Payments(trim($this->privateKey), $this->apiUrl); $this->clients = new Services_Paymill_Clients(trim($this->privateKey), $this->apiUrl); if ((int) MODULE_PAYMENT_PAYMILL_CC_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_PAYMILL_CC_ORDER_STATUS_ID; } if ($this->logging) { $this->description .= '<p><a href="' . xtc_href_link('paymill_logging.php') . '">' . MODULE_PAYMENT_PAYMILL_CC_DESCRIPTION . '</a></p>'; } if ($this->webHooksEnabled) { $type = 'CC'; $this->displayWebhookButton($type); } } if (is_object($order)) { $this->update_status(); } }