Esempio n. 1
0
        public NetPayInfo CreateNetPay(CheckNetPayReq request)
        {
            NetPayInfo         netPayInfo = null;
            SOIncomeRefundInfo refundInfo = null;

            request.Convert(out netPayInfo, out refundInfo);
            return(ObjectFactory <NetPayAppService> .Instance.Create(netPayInfo, refundInfo, request.IsForceCheck.Value));
        }
Esempio n. 2
0
        /// <summary>
        /// 创建网上支付
        /// </summary>
        /// <param name="vm"></param>
        /// <param name="callback"></param>
        public void Create(NetPayMaintainVM vm, Action callback)
        {
            CheckNetPayReq req = vm.ConvertVM <NetPayMaintainVM, CheckNetPayReq>((s, t) =>
            {
                t.IsForceCheck   = s.IsForceCheck;
                t.RelatedSOSysNo = int.Parse(s.PayInfo.RelatedSOSysNo);
                t.PayReq         = s.PayInfo.ConvertVM <PayInfoVM, PayInfoReqData>();
                t.RefundReq      = s.RefundInfo.ConvertVM <RefundInfoVM, RefundInfoReqData>();
            });
            string relativeUrl = "/InvoiceService/NetPay/Create";

            restClient.Create <object>(relativeUrl, req, (obj, args) =>
            {
                if (args.FaultsHandle())
                {
                    return;
                }
                callback();
            });
        }