예제 #1
0
 public MultiGatewayTransaction(TransactionRequest request, IList <PaymentAccount> accounts)
 {
     Request   = request;
     _accounts = accounts;
 }
예제 #2
0
 public static Transaction CreateTransaction(TransactionRequest request, PaymentAccountDetails account)
 {
     return(new Transaction(request, account.Account));
 }
예제 #3
0
 public override TransactionResponse CommitTransaction(TransactionRequest request)
 {
     return(CommitTransactionNormal(request));
 }
예제 #4
0
        /// <exception cref="DbException"/>
        //public static Transaction CreateTransaction(TransactionRequest request)
        //{
        //    var gatewayDetails = PaymentAccountDetails.AllGateways;

        //    return createMultiGatewayTransaction(request, gatewayDetails);
        //}


        /// <exception cref="DbException"/>
        public static Transaction CreateTransaction <T>(TransactionRequest request) where T : PaymentAccountDetails
        {
            var gatewayDetails = TableHelper.SelectAllRows <T>();

            return(createMultiGatewayTransaction(request, gatewayDetails));
        }