Exemplo n.º 1
0
 /// <summary>
 /// Queries status of an Mpesa transaction
 /// </summary>
 /// <param name="mpesaTransactionStatusDto"></param>
 /// <param name="accesstoken"></param>
 /// <param name="requestEndPoint"></param>
 /// <param name="cancellationToken">Cancellation Token</param>
 /// <returns></returns>
 public async Task <string> QueryMpesaTransactionStatusAsync(MpesaTransactionStatusDto mpesaTransactionStatusDto, string accesstoken, string requestEndPoint, CancellationToken cancellationToken = default)
 {
     return(await MpesaHttpRequest(mpesaTransactionStatusDto, accesstoken, requestEndPoint, cancellationToken));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Queries status of an Mpesa transaction
 /// </summary>
 /// <param name="mpesaTransactionStatusDto"></param>
 /// <param name="accesstoken">Access Token</param>
 /// <param name="requestEndPoint">Endpoint Url</param>
 /// <param name="cancellationToken">Cancellation Token</param>
 /// <returns></returns>
 public string QueryMpesaTransactionStatus(MpesaTransactionStatusDto mpesaTransactionStatusDto, string accesstoken, string requestEndPoint, CancellationToken cancellationToken = default)
 {
     return(MpesaHttpRequest(mpesaTransactionStatusDto, accesstoken, requestEndPoint, cancellationToken).GetAwaiter().GetResult());
 }