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