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
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;
00065 }
00066
00067
00068
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 }