/// <summary>
        /// 创建请求url
        /// </summary>
        /// <returns></returns>
        public string CreateRequestUrl()
        {
            var alipayService = new Alipay.Class.Service();
            var payUrl        = alipayService.alipay_Wap_Auth_AuthAndExecute(RequestUrl, SecId, Partner,
                                                                             CallbackUrl, Format, Version, ServiceAuth, Token, InputCharset,
                                                                             RequestUrl, Key, SecId);

            return(payUrl);
        }
        /// <summary>
        /// 初始化
        /// </summary>
        /// <returns></returns>
        public IPayment Init()
        {
            var alipayService = new Alipay.Class.Service();

            Token = alipayService.alipay_wap_trade_create_direct(RequestUrl, PayConfig.Subject, PayConfig.OutTradeNo,
                                                                 PayConfig.TotalFee.ToString(CultureInfo.InvariantCulture),
                                                                 SellerAccount, NotifyUrl,
                                                                 PayConfig.OutUser, MerchantUrl, CallbackUrl, ServiceCreate,
                                                                 SecId, Partner, PayConfig.RequestIdentity, Format, Version, InputCharset, RequestUrl,
                                                                 Key, SecId);
            return(this);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <returns></returns>
 public IPayment Init()
 {
     var alipayService = new Alipay.Class.Service();
     Token = alipayService.alipay_wap_trade_create_direct(RequestUrl, PayConfig.Subject, PayConfig.OutTradeNo,
                                                  PayConfig.TotalFee.ToString(CultureInfo.InvariantCulture),
                                                  SellerAccount, NotifyUrl,
                                                  PayConfig.OutUser, MerchantUrl, CallbackUrl, ServiceCreate,
                                                  SecId, Partner, PayConfig.RequestIdentity, Format, Version, InputCharset, RequestUrl,
                                                  Key, SecId);
     return this;
 }
Exemplo n.º 4
0
 /// <summary>
 /// 创建请求url
 /// </summary>
 /// <returns></returns>
 public string CreateRequestUrl()
 {
     var alipayService = new Alipay.Class.Service();
     var payUrl = alipayService.alipay_Wap_Auth_AuthAndExecute(RequestUrl, SecId, Partner,
         CallbackUrl, Format, Version, ServiceAuth, Token, InputCharset,
         RequestUrl, Key, SecId);
     return payUrl;
 }