コード例 #1
0
        public ActionResult BankList()
        {
            string apiusername  = ApplicationUtilities.GetAppConfigValue("apiusername");
            string apipasssword = ApplicationUtilities.GetAppConfigValue("apipasssword");
            string apisecretkey = ApplicationUtilities.GetAppConfigValue("apisecretkey");
            string merchantname = ApplicationUtilities.GetAppConfigValue("merchantname");
            string merchantid   = ApplicationUtilities.GetAppConfigValue("merchantid");
            MiddleServiceRequest middlewareCall = new MiddleServiceRequest("cgpay", apiusername, apipasssword, apisecretkey, Session["UserName"].ToString());
            var response = middlewareCall.GetPaymentInstrumentDetail(merchantid, merchantname);
            var bankList = ApplicationUtilities.MapObjects <BankList>(response.data);

            return(View(bankList));
        }