コード例 #1
0
        // Taksit Sorgulama
        public ActionResult Get()
        {
            var request = new GetInstallmentsRequest
            {
                ApiKey    = _apiKey,
                BinNumber = "454360"
            };

            var apiUrl = _apiUrl + "/merchants/installments";

            var response = _installmentProcessor.GetInstallments(request, apiUrl, _secretKey);

            return(View(new InstallmentResultModel
            {
                Success = response.Success,
                MessageCode = response.MessageCode,
                Message = response.Message,
                UserMessage = response.UserMessage,
                InstallmentDtos = response.InstallmentDtos
            }));
        }
コード例 #2
0
        public GetInstallmentsResponse GetInstallments(GetInstallmentsRequest reqModel, string apiUrl, string secretKey)
        {
            var installmentResponse = RestCallPost <GetInstallmentsResponse>(apiUrl, reqModel, secretKey);

            return(installmentResponse);
        }