Payment() публичный Метод

����������֧��Url��Form�������ά�롣
����������Ƕ�����Url��Form�������ת����Ӧ����֧��������Ƕ�ά�뽫�����ά��ͼƬ��
public Payment ( ) : void
Результат void
Пример #1
0
        /// <summary>
        /// 创建易宝的支付订单
        /// </summary>
        private void CreateYeepayOrder()
        {
            PaymentSetting paymentSetting = new PaymentSetting(GatewayType.Yeepay);
            paymentSetting.Merchant.UserName = "******";
            paymentSetting.Merchant.Key = "000000000000000000000000000000000000000000";
            paymentSetting.Merchant.NotifyUrl = new Uri("http://yourwebsite.com/Notify.aspx");

            paymentSetting.Order.Amount = 0.01;
            paymentSetting.Order.Id = "24";
            paymentSetting.Order.Subject = "测试易宝";

            paymentSetting.Payment();
        }
Пример #2
0
        /// <summary>
        /// 创建微信的支付订单
        /// </summary>
        private void CreateWeChatPaymentOrder()
        {
            PaymentSetting paymentSetting = new PaymentSetting(GatewayType.WeChatPayment);
            paymentSetting.SetGatewayParameterValue("appid", "wx000000000000000");
            paymentSetting.Merchant.UserName = "******";
            paymentSetting.Merchant.Key = "000000000000000000000000000000000000000000";
            paymentSetting.Merchant.NotifyUrl = new Uri("http://yourwebsite.com/Notify.aspx");

            paymentSetting.Order.Amount = 0.01;
            paymentSetting.Order.Id = "31";
            paymentSetting.Order.Subject = "测测看微信";

            paymentSetting.Payment();
        }
Пример #3
0
        /// <summary>
        /// 创建支付宝的支付订单
        /// </summary>
        private void CreateAlipayOrder()
        {
            PaymentSetting paymentSetting = new PaymentSetting(GatewayType.Alipay);
            paymentSetting.SetGatewayParameterValue("seller_email", "*****@*****.**");
            paymentSetting.Merchant.UserName = "******";
            paymentSetting.Merchant.Key = "000000000000000000000000000000000000000000";
            paymentSetting.Merchant.NotifyUrl = new Uri("http://yourwebsite.com/Notify.aspx");

            paymentSetting.Order.Amount = 0.01;
            paymentSetting.Order.Id = "35";
            paymentSetting.Order.Subject = "测测看支付宝";

            paymentSetting.Payment();
        }