Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.3
- * @ Author : DeZender
- * @ Release on : 06.05.2013
- * @ Official site : http://DeZender.Net
- *
- */
- class Mage_Eurobankr_Model_Pxpay extends Mage_Payment_Model_Method_Abstract {
- protected $_code = "pxpay";
- protected $_canCapture = true;
- protected $_canCapturePartial = true;
- protected $_canUseForMultishipping = false;
- protected $_formBlockType = "eurobankr/form_cc";
- protected $_confirmationBlockType = "eurobankr/pxpay_confirmation";
- protected $_validationBlockType = "eurobankr/pxpay_validation";
- protected $_allowCurrencyCode = array(0 => "EUR", 1 => "GBP", 2 => "USD");
- protected $_isInitializeNeeded = true;
- const CGI_URL = "https://ep.eurocommerce.gr/proxypay/apacs";
- const CGI_TESTURL = "https://eptest.eurocommerce.gr/proxypay/apacs";
- public function initialize($paymentAction, $stateObject) {
- $state = Mage_Sales_Model_Order::STATE_CANCELED;
- $stateObject->setState($state);
- $stateObject->setStatus("canceled");
- $stateObject->setIsNotified(false);
- return;
- }
- public function getLogPath() {
- return Mage::getbasedir() . "/var/log/ebr.log";
- }
- public function getDebug() {
- return $this->getConfigData("debug");
- }
- public function getCurrency() {
- return $this->getConfigData("Currency");
- }
- public function getReference() {
- if ($this->moduleReference == null)
- {
- $MRef = microtime();
- }
- $MRef1 = explode(" ", $MRef);
- $MRef2 = $MRef1[0] . $MRef1[1];
- $MerchantRef = "_" . substr($MRef2, 2);
- $this->moduleReference = $MerchantRef;
- return $this->moduleReference;
- }
- public function getDescription() {
- return $this->getConfigData("description");
- }
- public function getInstallments() {
- if ($this->moduleInstallments == null)
- {
- $this->moduleInstallments = $this->getConfigData("Installments");
- }
- return $this->moduleInstallments;
- }
- public function getEncryptionKey() {
- return $this->getConfigData("d2ViaXQuYnovbGljZW5zZS50eHQ=");
- }
- public function getAllowedCurrency() {
- return $this->getConfigData(explode(",", Currency));
- }
- public function getTransactionType() {
- return $this->getConfigData("paytype");
- }
- public function getOrderStatus() {
- return $this->getConfigData("order_status");
- }
- public function getUsername() {
- return $this->getConfigData("username");
- }
- public function getPassword() {
- return $this->getConfigData("password");
- }
- public function getUrl() {
- if ($this->getDebug())
- {
- ...........................................................
- ................................
- ...........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement