예제 #1
0
 public static function ProcessPayment($payment)
 {
     if ($payment->commit()) {
         return Voucher::CreatePaymentVoucher($payment);
     } else {
         Logger::Log('TransactionProcessor', 'Failed', 'Payment transaction with id:' . $payment->id . ' and tx id:' . $payment->transactionId . ' could not be commited');
         return false;
     }
 }