Cb number format is invalid, must be 00001111222233334444\n"); } elseif (!eregi("^[0-9]{2}/[0-9]{4}$", $dateval)) { fianet_insert_log("fianet_payment_xml.php - set_cb_number()
Validity date format is invalid, must be MM/YYYY\n"); } else { $crypt = new HashMD5(); $this->numcb = $crypt->hash($cb); $this->dateval = $crypt->hash($dateval); } } function get_xml() { $xml = ''; if ($this->type != null) { $xml .= "\t".''."\n"; $xml .= "\t\t".''.$this->type.''."\n"; if ($this->type == 'carte' || $this->type == 'paypal') { if ($this->numcb != null) { $xml .= "\t\t".''.$this->numcb.''."\n"; } if ($this->dateval != null) { $xml .= "\t\t".''.$this->dateval.''."\n"; } if ($this->bin != null) { $xml .= "\t\t".''.$this->bin.''."\n"; } if ($this->bin4 != null) { $xml .= "\t\t".''.$this->bin4.''."\n"; } if ($this->bin42 != null) { $xml .= "\t\t".''.$this->bin42.''."\n"; } } $xml .= "\t".''."\n"; } else { fianet_insert_log("fianet_payment_xml.php - get_xml()
Type is undefined\n"); return; } return ($xml); } }