Exemple #1
0
        public string SendAmout(string posID, double amount, CurrencyType curency)
        {
            //log.Info("Send Amount started");
            FinancialTrxRequest data = new FinancialTrxRequest {
                posId   = posID,
                trxData = new TransactionData {
                    amount          = (ulong)amount,
                    currency        = CurrencyType.Item978,
                    transactionType = 0
                }
            };
            string xml = data.Serialize();

            sendMessageToVPJ(xml);
            return(xml);
        }
Exemple #2
0
        public bool SendAmout(string posID, double amount, int pCurency, string pAddPaymentInfo)
        {
            //log.Info(String.Format("PosID: {0}: Send Amount started",posID));
            CurrencyType        currency = (CurrencyType)pCurency;
            FinancialTrxRequest data     = new FinancialTrxRequest {
                posId   = posID,
                trxData = new TransactionData {
                    amount = (ulong)amount,
                    additionalMerchantData = pAddPaymentInfo,
                    currency        = CurrencyType.Item978,
                    transactionType = 0
                }
            };
            string xml = data.Serialize();

            return(sendMessageToVPJ(xml, posID, "<vcs-pos:financialTrxResponse"));
        }