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