AnsweredAssumed Answered

triPOS timeout issues

Question asked by maikzhang on Oct 15, 2018
Latest reply on Oct 25, 2018 by jwmarin

Hi there,

We are now integration with Vantiv through triPOS service and we are using the similar code as the suggestion from the doc here (Generate a triPOS Direct Request ).

 

We met some cases that the request is timeout on client side when waiting for the response from triPOS services (and I assume the default timeout for the httpClient is 100s), however, the finally transaction is successful on Vantiv side. This could cause the issue in our App that not mark the spec payment with correct status. We can increase the timeout setting for this, however, this should not be a perfect solution on my perspective. So I am wondering if there is any suggestion from Vantiv for such cases?

 

HttpResponseMessage respMessage = null; 
using (var httpClient = new HttpClient())
{
var message = new HttpRequestMessage(HttpMethod.Post, new Uri(url));
this.CreateRequestHeaders(message, postBody, contentType, developerKey, developerSecret);
Task response = httpClient.SendAsync(message);
response.Wait();
respMessage = response.Result;
}

 

Thanks,

Outcomes