public static bool CanEnd(this IPaymentProvider provider, System.Web.HttpRequestBase request)
        {
            var data = request.ToDictionary(RequestRead.QueryAndForm);

            data.Add("HttpMethod", request.HttpMethod);
            data.Add("Url", request.Url.AbsoluteUri);

            return(provider.CanEnd(data));
        }
        public static Task <PaymentProviderEndPaymentResponse> EndPaymentAsync(this IPaymentProvider provider, System.Web.HttpRequestBase request)
        {
            var data = request.ToDictionary(RequestRead.QueryAndForm);

            data.Add("HttpMethod", request.HttpMethod);
            data.Add("Url", request.Url.AbsoluteUri);

            return(provider.EndPaymentAsync(data, CancellationToken.None));
        }
Exemple #3
0
        public static PaymentManagerEndPaymentResponse EndPayment(this IPaymentManager Manager, System.Web.HttpRequestBase request, string paymentCode)
        {
            var data = request.ToDictionary(RequestRead.QueryAndForm);

            data.Add("HttpMethod", request.HttpMethod);
            data.Add("Url", request.Url.AbsoluteUri);

            return(Manager.EndPayment(data, paymentCode));
        }
        public static string GetEndPaymentCode(this IPaymentProvider provider, System.Web.HttpRequestBase request)
        {
            var data = request.ToDictionary(RequestRead.QueryAndForm);

            return(provider.GetEndPaymentQuery(data));
        }