Пример #1
0
    public IRefundResult DoRefund(IRefundRequest request)
    {
        request.TransactionType = TransactionType.REFUND;
        RequestQueryString      = BuildQueryString(request, ProtocolMessage.REFUND_REQUEST, SagePaySettings.ProtocolVersion);
        ResponseQueryString     = ProcessWebRequestToSagePay(SagePaySettings.RefundUrl, RequestQueryString);
        IRefundResult result = ConvertToRefundResult(ResponseQueryString);

        return(result);
    }
Пример #2
0
        public static IRefundResult BuildWechatRefundResult()
        {
            if (_wechatRefundResult == null)
            {
                _wechatRefundResult = new WechatPayRefundResult();
            }

            return(_wechatRefundResult);
        }
Пример #3
0
        public static IRefundResult BuildAllinpayRefundResult()
        {
            if (_allinpayRefundResult == null)
            {
                _allinpayRefundResult = new AllinpayRefundResult();
            }

            return(_allinpayRefundResult);
        }
Пример #4
0
        public static IRefundResult BuildSimulateRefundResult()
        {
            if (_simulateRefundResult == null)
            {
                _simulateRefundResult = new SimulateRefundResult();
            }

            return(_simulateRefundResult);
        }