Example #1
0
        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);
        }
Example #2
0
 public override TResponse Execute <TModel, TResponse>(Request <TModel, TResponse> request)
 {
     return(SubmitProcess.Execute(_merchant, request, GatewayUrl));
 }