コード例 #1
0
ファイル: PaymentHandler.cs プロジェクト: zyuhua/devfw
        /// <summary>
        /// 页面回调
        /// </summary>
        /// <param name="pmid"></param>
        /// <param name="ptid">接口类型ID</param>
        /// <returns></returns>
        public PaidHandleResult Return(PayMethods pm, PayApiType pt, PayMointor <T> proc)
        {
            PaidHandleResult result;

            //PayMointor<string> proc = new PayMointor<string>(String.Empty);
            //proc.OnInit += orderNo =>
            //{
            //    proc.Instance=
            //};

            this.AttachEvent(proc);

            // PayMethods pm = (PayMethods)pmid;                //支付方式
            //PayApiType pt = (PayApiType)ptid;                //接口类型

            result = PayUtil.PayReturn(pm, pt, proc);
            if (result == PaidHandleResult.Success)
            {
                proc.PaidSuccess();
            }
            else if (result == PaidHandleResult.Fail)
            {
                proc.PaidFail();
            }
            return(result);
        }