Exemple #1
0
        // Kart Alma
        public ActionResult Get()
        {
            var request = new GetMerchantCardRequest
            {
                ApiKey             = _apiKey,
                Id                 = Guid.Parse("cf236f4d-4a74-4d7f-b54e-a75c00fbc622"),
                MerchantCardUserId = "1234421",
                MerchantUserId     = "131231",
                Email              = "*****@*****.**",
                ReferenceId1       = "14324234",
                PagerInputDto      = new PagerInputModel {
                    PageIndex = 1, PageSize = 10
                }
            };

            var apiUrl = _apiUrl + "/cards/merchantquery";

            var response = _cardProcessor.GetCard(request, apiUrl, _secretKey);

            return(View(new CardResultModel()
            {
                Success = response.Success,
                MessageCode = response.MessageCode,
                Message = response.Message,
                UserMessage = response.UserMessage,
                MerchantCardDtos = response.MerchantCardDtos
            }));
        }
Exemple #2
0
        public GetMerchantCardResponse GetCard(GetMerchantCardRequest request, string apiUrl, string secretKey)
        {
            var getCardResponse = RestCallPost <GetMerchantCardResponse>(apiUrl, request, secretKey);

            return(getCardResponse);
        }