public QueryPaymentResponse QueryPayment(QueryPaymentRequest request) { return(WrapResponse <QueryPaymentResponse, QueryPaymentResponseBody>( new ServiceExecutionDelegator <QueryPaymentResponseBody, QueryPaymentRequestBody>().ResolveRequest(request.Request, (request.Request.Platform ?? ConfigurationManager.AppSettings["DefaultPlatform"]), ApiServiceName.QueryPayment))); //return WrapResponse<TopUpResponse, TopUpResponseBody>( // new ServiceExecutionDelegator<TopUpResponseBody, TopUpRequestBody>().ResolveRequest(request.Request, (request.Request.Platform ?? ConfigurationManager.AppSettings["DefaultPlatform"]), ApiServiceName.TopUp)); }
/// <remarks> /// Wraps calls to Realex's 'Query' API function /// </remarks> public async Task <QueryPaymentResponse> RealexQueryPayment( PaymentProviderConfiguration configuration, string uniqueIdentifier, decimal expectedAmount, string subAccount) { QueryPaymentRequest qRequest = new QueryPaymentRequest(merchantId: configuration.AccountIdentifer, originalOrderId: uniqueIdentifier); qRequest.SubAccount = subAccount; QueryPaymentResponse response = await PostXmlToRealex <QueryPaymentResponse, QueryPaymentRequest>( qRequest, secretKey : configuration.SharedSecret, logLevelForSuccess : LogLevel.Debug); return(response); }