oxpaymentgateway.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class oxPaymentGateway extends oxSuperCfg
00010 {
00015     protected $_blActive       = false;
00016 
00021     protected $_oPaymentInfo   = null;
00022 
00028     protected $_iLastErrorNo   = 4;
00029 
00035     protected $_sLastError     = null;
00036 
00044     public function setPaymentParams( $oUserpayment )
00045     {
00046         // store data
00047         $this->_oPaymentInfo = & $oUserpayment;
00048     }
00049 
00058     public function executePayment( $dAmount, & $oOrder )
00059     {
00060         $this->_iLastErrorNo = null;
00061         $this->_sLastError = null;
00062 
00063         if ( !$this->_isActive()) {
00064             return true;    // fake yes
00065         }
00066 
00067         // proceed with no payment
00068         // used for other countries
00069         if (@$this->_oPaymentInfo->oxuserpayments__oxpaymentsid->value == 'oxempty') {
00070             return true;
00071         }
00072 
00073         return false;
00074     }
00075 
00081     public function getLastErrorNo()
00082     {
00083         return $this->_iLastErrorNo;
00084     }
00085 
00091     public function getLastError()
00092     {
00093         return $this->_sLastError;
00094     }
00095 
00101     protected function _isActive()
00102     {
00103         return $this->_blActive;
00104     }
00105 }

Generated on Thu Dec 4 12:04:56 2008 for OXID eShop CE by  doxygen 1.5.5