コード例 #1
0
        /// <summary>
        /// 回调结果解释
        /// </summary>
        /// <param name="callbackContent">回调字符串</param>
        /// <returns></returns>
        public CallbackData Callback(string callbackContent)
        {
            _logger.LogInformation("callback收到的信息:" + callbackContent);
            var handler = new ClientResponseHandler();

            handler.SetContent(callbackContent);
            handler.SetKey(_key);
            var param = handler.GetAllParameters();

            handler.IsTenpaySign();
            var data = new CallbackData();

            data.FillBy(param);
            _logger.LogDebug("callback-back TransactionId:" + data.TransactionId);
            return(data);
        }