public static function ProcessClaim($claim) { if ($claim->commit()) { //return Voucher::CreateTransactionVoucher($claim); return Voucher::CreateClaimVoucher($claim); } else { Logger::Log('TransactionProcessor', 'Failed', 'Claim transaction with tx id:' . $claim->transactionId . ' could not be commited'); return false; } }