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); }
public static IRefundResult BuildWechatRefundResult() { if (_wechatRefundResult == null) { _wechatRefundResult = new WechatPayRefundResult(); } return(_wechatRefundResult); }
public static IRefundResult BuildAllinpayRefundResult() { if (_allinpayRefundResult == null) { _allinpayRefundResult = new AllinpayRefundResult(); } return(_allinpayRefundResult); }
public static IRefundResult BuildSimulateRefundResult() { if (_simulateRefundResult == null) { _simulateRefundResult = new SimulateRefundResult(); } return(_simulateRefundResult); }