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