62 if ($sName ==
'oxpayments__oxdesc') {
63 if ($this->_oPayment === null) {
64 $this->_oPayment =
oxNew(
'oxpayment');
65 $this->_oPayment->load($this->oxuserpayments__oxpaymentsid->value);
68 return $this->_oPayment->oxpayments__oxdesc;
71 if ($sName ==
'aDynValues') {
72 if ($this->_aDynValues === null) {
88 $this->
init(
'oxuserpayments');
112 $sSelect =
'select oxid, oxuserid, oxpaymentsid, DECODE( oxvalue, "' . $this->
getPaymentKey() .
'" ) as oxvalue
113 from oxuserpayments where oxid = ' .
oxDb::getDb()->quote($sOxId);
133 if ($sValue = $this->oxuserpayments__oxvalue->value) {
135 $sEncodedValue = $oDb->getOne(
"select encode( " . $oDb->quote($sValue) .
", '" . $this->
getPaymentKey() .
"' )",
false,
false);
136 $this->oxuserpayments__oxvalue->setValue($sEncodedValue);
142 if ($sEncodedValue) {
143 $this->oxuserpayments__oxvalue->setValue($sValue);
159 if ($sValue = $this->oxuserpayments__oxvalue->value) {
160 $sEncodedValue = $oDb->getOne(
"select encode( " . $oDb->quote($sValue) .
", '" . $this->
getPaymentKey() .
"' )",
false,
false);
161 $this->oxuserpayments__oxvalue->setValue($sEncodedValue);
167 if ($sEncodedValue) {
168 $this->oxuserpayments__oxvalue->setValue($sValue);
181 $this->_blStoreCreditCardInfo = $blStoreCreditCardInfo;
205 if ($oUser && $sPaymentType != null) {
207 $sQ =
'select oxpaymentid from oxorder where oxpaymenttype=' . $oDb->quote($sPaymentType) .
' and
208 oxuserid=' . $oDb->quote($oUser->getId()) .
' order by oxorderdate desc';
209 if (($sOxId = $oDb->getOne($sQ))) {
210 $blGet = $this->
load($sOxId);
228 if (!$this->_aDynValues) {
230 $sRawDynValue = null;
231 if (is_object($this->oxuserpayments__oxvalue)) {
232 $sRawDynValue = $this->oxuserpayments__oxvalue->getRawValue();
248 $this->_aDynValues = $aDynValues;