BeeCloud.BCPay.BCInternationalPay C# (CSharp) Метод

BCInternationalPay() публичный статический Метод

境外支付
public static BCInternationalPay ( BCInternationlBill bill ) : BCInternationlBill
bill BeeCloud.Model.BCInternationlBill
Результат BeeCloud.Model.BCInternationlBill
        public static BCInternationlBill BCInternationalPay(BCInternationlBill bill)
        {
            Random random = new Random();
            string payUrl = BCPrivateUtil.getHost() + BCConstants.version + BCConstants.internationalURL;

            string paraString = prepareInternationalPayParameters(bill);

            try
            {
                HttpWebResponse response = BCPrivateUtil.CreatePostHttpResponse(payUrl, paraString, BCCache.Instance.networkTimeout);
                string respString = BCPrivateUtil.GetResponseString(response);
                return handleInternationalPayResult(respString, bill);
            }
            catch (Exception e)
            {
                var ex = new BCException(e.Message);
                throw ex;
            }
        }