Exemple #1
0
        public Form1()
        {
            InitializeComponent();

            // 软件名称自定义,scimence修改为您自己的支付宝收款账号
            PayTool.Init("PayDemo", "scimence", PayResult);          // 初始化
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Random rnd = new Random(DateTime.Now.Second);
            int    N   = rnd.Next(1, 100);

            string productName = "商品" + N;
            string moneyYuan   = (0.01 * N) + "";
            string orderId     = "订单:" + N;
            string reserve     = "xxx" + N;

            PayTool.Pay(productName, moneyYuan, orderId, reserve);   // 调用支付
        }
Exemple #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     PayTool.Pay("商品1", "0.01", "00001", "reserve");   // 调用支付
 }