Exemple #1
0
        public bool PayNotify(OneGulp.WeChat.MP.TenPayLibV3.TenPayV3.Model.PaymentNotify paymentNotify, out string message)
        {
            message = string.Empty;
            var Pay_Ready       = 1;
            var isModifySuccess = false;

            //完成支付后续操作
            try
            {
                using (var scope = new TransactionScope())
                {
                    new BLL.wx_hotel_dingdan().PaySuccess(paymentNotify.out_trade_no);
                    isModifySuccess = IdentifyingCodeService.ModifyIdentifyingCodeInfoStatus(paymentNotify.out_trade_no, Pay_Ready);

                    if (isModifySuccess)
                    {
                        scope.Complete();
                    }
                }

                return(isModifySuccess);
            }
            catch (Exception exception)
            {
                message = exception.Message;
                return(false);
            }
        }
Exemple #2
0
        public bool PayNotify(OneGulp.WeChat.MP.TenPayLibV3.TenPayV3.Model.PaymentNotify paymentNotify, out string message)
        {
            message = string.Empty;

            //完成支付后续操作
            try
            {
                new BLL.wx_diancai_dingdan_manage().PaySuccess(paymentNotify.out_trade_no);
                return(true);
            }
            catch (Exception exception)
            {
                message = exception.Message;
                return(false);
            }
        }