Esempio n. 1
0
        public void CompleteComplaintAsyncTest()
        {
            var key          = TenPayHelper.GetRegisterKey(Config.SenparcWeixinSetting);
            var TenPayV3Info = TenPayV3InfoCollection.Data[key];

            // 此处输入投诉id
            var complaint_id = "{complaint_id}";
            var requestData  = new CompleteComplaintRequestData(complaint_id, TenPayV3Info.MchId);

            var complaintApis = new ComplaintApis();
            var result        = complaintApis.CompleteComplaintAsync(requestData).GetAwaiter().GetResult();

            Console.WriteLine("微信支付 V3 反馈处理完成接口测试结果:" + result.ToJson(true));

            Assert.IsNotNull(result);
            Assert.IsTrue(result.ResultCode.Success);
            Assert.IsTrue(result.VerifySignSuccess == true);//通过验证
        }