26 "CheckInAdvance" => 0,
29 "GoogleCheckout" => 0,
32 "AmericanExpress" => 1,
51 $oDb->execute(
"DELETE FROM oxobject2payment WHERE oxpaymentid = '".
oxConfig::getParameter(
"oxid").
"' AND OXTYPE = 'rdfapayment'");
54 foreach ( $aRDFaPayments as $sPayment ) {
55 $oMapping =
oxNew(
"oxbase");
56 $oMapping->init(
"oxobject2payment");
57 $oMapping->assign($aParams);
58 $oMapping->oxobject2payment__oxobjectid =
new oxField($sPayment);
70 $aRDFaPayments = array();
72 foreach ($this->_aRDFaPayments as $sName => $iType) {
73 $oPayment =
new stdClass();
74 $oPayment->name = $sName;
75 $oPayment->type = $iType;
76 $oPayment->checked = in_array($sName, $aAssignedRDFaPayments);
77 $aRDFaPayments[] = $oPayment;
79 return $aRDFaPayments;
90 $aRDFaPayments = array();
91 $sSelect =
'select oxobjectid from oxobject2payment where oxpaymentid='.$oDb->quote(
oxConfig::getParameter(
"oxid") ).
' and oxtype = "rdfapayment" ';
92 $rs = $oDb->execute( $sSelect );
93 if ( $rs && $rs->recordCount()) {
95 $aRDFaPayments[] = $rs->fields[0];
99 return $aRDFaPayments;