85     $strForValidate = $amount . $orderid . $transactionid . $password;
 
   86     if (md5($strForValidate) == $md5Key) {
 
  103     return md5($cur . $amount . $orderid . $password);
 
  117                 $res = $ilDB->queryf(
' 
  118                         SELECT epay FROM payment_settings WHERE settings_id = %s',
 
  127                         else $data = array();
 
  142                 $res = $ilDB->query(
'SELECT * FROM payment_settings');
 
  151                 $this->settings_id = $a_settings_id;
 
  161                 $this->server_host = $a_server_host;
 
  171                 $this->server_path = $a_server_path;
 
  181                 $this->merchant_number = (int) $a_merchant_number;
 
  191                 $this->auth_token = $a_auth_token;
 
  202                 $this->auth_email = $a_auth_email;
 
  207                 return $this->auth_email;
 
  212     if ((!$a_instant_capture == 1) || (!$a_instant_capture== 
'1')) $a_instant_capture=0; 
else $a_instant_capture=1;
 
  213                 $this->instant_capture = $a_instant_capture;
 
  246     if (isset($a[
'server_host'])) $this->
setServerHost($a[
'server_host']);
 
  247     if (isset($a[
'server_path'])) $this->
setServerPath($a[
'server_path']);
 
  248     if (isset($a[
'merchant_number'])) $this->
setMerchantNumber($a[
'merchant_number']);
 
  249     if (isset($a[
'auth_token'])) $this->
setAuthToken($a[
'auth_token']);
 
  250     if (isset($a[
'auth_email'])) $this->
setAuthEmail($a[
'auth_email']);
 
  251     if (isset($a[
'instant_capture'])) $this->
setInstantCapture($a[
'instant_capture']);    
 
  261     if ( ($a[
'server_host'] == 
'') || ($a[
'server_path'] == 
'') ) $r = 
false;
 
  262     if ( (
int) $a[
'merchant_number'] <= 0 ) $r = 
false;
 
  263     if ( ((
int) $a[
'instant_capture'] != 0 ) && ((
int) $a[
'instant_capture'] != 1)) $r = 
false;
 
  276                 $statement = $this->db->manipulateF(
' 
  277                         UPDATE payment_settings 
  279                         WHERE settings_id = %s',
 
  280                         array(
'text', 
'integer'), 
 
  284                 $this->settings = array();
 
  295                 $values = $this->
getAll();
 
  299                         $statement = $ilDB->manipulateF(
' 
  300                                 UPDATE payment_settings 
  302                                 WHERE settings_id = %s',
 
  303                                 array(
'text', 
'integer'),
 
  309                         $next_id = $ilDB->nextId(
'payment_settings');
 
  310                         $statement = $ilDB->manipulateF(
' 
  311                                 INSERT INTO payment_settings 
  315                                 array(
'integer',
'text'), array($next_id, serialize($values)));