public MerchantRtpConfirmResponseData GetMerchantRtpConfirm(MerchantRtpConfirmRequestHeader merchantRtpConfirmRequestHeader, MerchantRtpConfirmRequestBody merchantRtpConfirmRequestBody) { var client = new RestClient(OpenAPI.Payments.BScanC.Confirm(_remoteServiceBaseUrl)) { Timeout = -1 }; var request = new RestRequest(Method.POST); request.AddHeader("content-type", merchantRtpConfirmRequestHeader.ContentType); request.AddHeader("authorization", merchantRtpConfirmRequestHeader.Authorization); request.AddHeader("resourceOwnerId", merchantRtpConfirmRequestHeader.ResourceOwnerId); request.AddHeader("requestUId", merchantRtpConfirmRequestHeader.RequestUId); request.AddHeader("accept-language", merchantRtpConfirmRequestHeader.AcceptLanguage); request.AddJsonBody(JsonConvert.SerializeObject(merchantRtpConfirmRequestBody)); IRestResponse response = client.Execute(request); var responseContent = JsonConvert.DeserializeObject <MerchantRtpConfirmResponseData>(response.Content); var responseJsonString = JsonConvert.DeserializeObject(response.Content); var results = responseContent; results.jsonString = responseJsonString; return(results); }
/// <summary> /// This endpoint support the B Scan C Payment API. /// </summary> /// <param name="merchantRtpConfirmRequestHeader">Request Header</param> /// <param name="merchantRtpConfirmRequestBody">Request Body</param> /// <returns>Merchant rtp confirm details</returns> public async Task <MerchantRtpConfirmResponseData> GetMerchantRtpConfirmAsync(MerchantRtpConfirmRequestHeader merchantRtpConfirmRequestHeader, MerchantRtpConfirmRequestBody merchantRtpConfirmRequestBody) { return(await _bScanCService.GetMerchantRtpConfirmAsync(merchantRtpConfirmRequestHeader, merchantRtpConfirmRequestBody)); }
/// <summary> /// This endpoint support the B Scan C Payment API. /// </summary> /// <param name="merchantRtpConfirmRequestHeader">Request Header</param> /// <param name="merchantRtpConfirmRequestBody">Request Body</param> /// <returns>Merchant rtp confirm details</returns> public MerchantRtpConfirmResponseData GetMerchantRtpConfirm(MerchantRtpConfirmRequestHeader merchantRtpConfirmRequestHeader, MerchantRtpConfirmRequestBody merchantRtpConfirmRequestBody) { return(_bScanCService.GetMerchantRtpConfirm(merchantRtpConfirmRequestHeader, merchantRtpConfirmRequestBody)); }