Beispiel #1
0
 public string Generate(BatchPayment batchPayment)
 {
     return Generate(Utility.GetSortedParams(_config, batchPayment));
 }
Beispiel #2
0
        public static SortedDictionary<string, string> GetSortedParams(Config config, BatchPayment batchPayment)
        {
            var sortedParams = new SortedDictionary<string, string>();

            sortedParams.Add("_input_charset", "utf-8");
            sortedParams.Add("account_name", config.MainName);
            sortedParams.Add("batch_fee", batchPayment.BatchFee);
            sortedParams.Add("batch_no", batchPayment.BatchNo);
            sortedParams.Add("batch_num", batchPayment.BatchNum);
            sortedParams.Add("detail_data", batchPayment.DetailData);
            sortedParams.Add("email", config.SellerEmail);
            sortedParams.Add("notify_url", config.NotifyUrl);
            sortedParams.Add("partner", config.Partner);
            sortedParams.Add("pay_date", batchPayment.PayDate);
            sortedParams.Add("service", "batch_trans_notify");

            return sortedParams;
        }