62 if ( $sName ==
'oxpayments__oxdesc' ) {
63 if ( $this->_oPayment === null ) {
64 $this->_oPayment =
oxNew(
'oxpayment' );
65 $this->_oPayment->load( $this->oxuserpayments__oxpaymentsid->value );
67 return $this->_oPayment->oxpayments__oxdesc;
70 if ( $sName ==
'aDynValues' ) {
71 if ( $this->_aDynValues === null ) {
86 $this->
init(
'oxuserpayments' );
110 $sSelect =
'select oxid, oxuserid, oxpaymentsid, DECODE( oxvalue, "'.$this->getPaymentKey().
'" ) as oxvalue
111 from oxuserpayments where oxid = '.
oxDb::getDb()->quote( $sOxId );
126 if ( !$this->
getStoreCreditCardInfo() && $this->oxuserpayments__oxpaymentsid->value ==
'oxidcreditcard' ) {
131 if ( $sValue = $this->oxuserpayments__oxvalue->value ) {
133 $sEncodedValue = $oDb->getOne(
"select encode( " . $oDb->quote( $sValue ) .
", '" . $this->
getPaymentKey() .
"' )",
false,
false);
134 $this->oxuserpayments__oxvalue->setValue($sEncodedValue);
140 if ( $sEncodedValue ) {
141 $this->oxuserpayments__oxvalue->setValue($sValue);
157 if ( $sValue = $this->oxuserpayments__oxvalue->value ) {
158 $sEncodedValue = $oDb->getOne(
"select encode( " . $oDb->quote( $sValue ) .
", '" . $this->
getPaymentKey() .
"' )",
false,
false);
159 $this->oxuserpayments__oxvalue->setValue($sEncodedValue);
165 if ( $sEncodedValue ) {
166 $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 );
224 if ( !$this->
getStoreCreditCardInfo() && $this->oxuserpayments__oxpaymentsid->value ==
'oxidcreditcard' ) {
228 if ( !$this->_aDynValues ) {
230 $sRawDynValue = null;
231 if ( is_object($this->oxuserpayments__oxvalue) ) {
232 $sRawDynValue = $this->oxuserpayments__oxvalue->getRawValue();
249 $this->_aDynValues = $aDynValues;