protected override async Task <bool> ValidateNotifyAsync() { base.NotifyResponse = await GatewayData.ToObjectAsync <NotifyResponse>(StringCase.Lower); base.NotifyResponse.Raw = GatewayData.Raw; if (!SubmitProcess.CheckSign(GatewayData, _merchant.Key, NotifyResponse.Sign)) { throw new GatewayException("签名不一致"); } return(true); }
public override TResponse Execute <TModel, TResponse>(Request <TModel, TResponse> request) { return(SubmitProcess.Execute(_merchant, request, GatewayUrl)); }