Пример #1
0
 public function addAuth($hash_in)
 {
     $hash_out = Transactions::createAuthHash($hash_in);
     $choice_hash = array(XmlFields::returnArrayValue($hash_out, 'card'), XmlFields::returnArrayValue($hash_out, 'paypal'), XmlFields::returnArrayValue($hash_out, 'token'), XmlFields::returnArrayValue($hash_out, 'paypage'));
     $this->addTransaction($hash_out, $hash_in, 'authorization', $choice_hash);
     $this->counts_and_amounts['auth']['count'] += 1;
     $this->counts_and_amounts['auth']['amount'] += $hash_out['amount'];
 }