static void Main()
        {
            string  vendor_sn  = "20160317111402";
            string  vendor_key = "7a87156a7c8e9ca9cecf2787fefe47d3";
            string  code       = "98532639";//激活码
            JObject result     = WoSaiPay.activate(vendor_sn, vendor_key, code);

            if (result != null)
            {
                string terminal_sn  = (string)result.GetValue("terminal_sn");
                string terminal_key = (string)result.GetValue("terminal_key");

                JObject terminal = WoSaiPay.checkin(terminal_sn, terminal_key);

                if (terminal != null)
                {
                    string newTerminal_sn   = (string)result.GetValue("terminal_sn");
                    string newTterminal_key = (string)result.GetValue("terminal_key");

                    WoSaiPay.pay(newTerminal_sn, newTterminal_key);
                    WoSaiPay.refund(newTerminal_sn, newTterminal_key);
                    WoSaiPay.query(newTerminal_sn, newTterminal_key);
                    WoSaiPay.cancel(newTerminal_sn, newTterminal_key);
                    WoSaiPay.revoke(newTerminal_sn, newTterminal_key);
                    WoSaiPay.precreate(newTerminal_sn, newTterminal_key);
                }
            }
        }
        static void Main()
        {
            string  vendor_sn  = "";    //需要联系收钱吧技术支持申请获得
            string  vendor_key = "";    //需要联系收钱吧技术支持申请获得
            string  appid      = "";    //需要登录收钱吧服务商平台选择相应业务场景生成
            string  code       = "";    //需联系收钱吧提供激活码
            JObject result     = WoSaiPay.activate(vendor_sn, vendor_key, appid, code);

            if (result != null)
            {
                string terminal_sn  = (string)result.GetValue("terminal_sn");
                string terminal_key = (string)result.GetValue("terminal_key");

                JObject terminal = WoSaiPay.checkin(terminal_sn, terminal_key);

                if (terminal != null)
                {
                    string newTerminal_sn   = (string)result.GetValue("terminal_sn");
                    string newTterminal_key = (string)result.GetValue("terminal_key");

                    WoSaiPay.pay(newTerminal_sn, newTterminal_key);
                    WoSaiPay.refund(newTerminal_sn, newTterminal_key);
                    WoSaiPay.query(newTerminal_sn, newTterminal_key);
                    WoSaiPay.cancel(newTerminal_sn, newTterminal_key);
                    WoSaiPay.precreate(newTerminal_sn, newTterminal_key);
                }
            }
        }