コード例 #1
0
 public function addCredit($hash_in)
 {
     $hash_out = Transactions::createCreditHash($hash_in);
     $choice_hash = array($hash_out['card'], $hash_out['paypal'], $hash_out['token'], $hash_out['paypage']);
     $this->addTransaction($hash_out, $hash_in, 'credit', $choice_hash);
     $this->counts_and_amounts['credit']['count'] += 1;
     $this->counts_and_amounts['credit']['amount'] += $hash_out['amount'];
 }