コード例 #1
0
        private IAopClient GetAlipayClient()
        {
            //支付宝网关地址
            // -----开发环境地址-----
            string serverUrl = "https://openfile.alipay.com/chat/multimedia.do";

            // -----沙箱地址----- string serverUrl = "http://openapi.alipaydev.com/gateway.do";

            // -----线上地址----- string serverUrl = "https://openapi.alipay.com/gateway.do";

            //应用ID
            string appId = "2013092500031084";
            //商户私钥
            string privateKeyPem = "aop-sandbox-RSA-private-c#.pem";

            IAopClient client = new AlipayMobilePublicMultiMediaClient(serverUrl, appId, privateKeyPem, "json", "GBK");

            return(client);
        }
コード例 #2
0
ファイル: TestImage.cs プロジェクト: liuxing7954/cangku_1
        private IAopClient GetAlipayClient()
        {
            //支付宝网关地址
            // -----开发环境地址-----
            string serverUrl = "https://openfile.alipay.com/chat/multimedia.do";

            // -----沙箱地址-----
            // string serverUrl = "http://openapi.alipaydev.com/gateway.do";

            // -----线上地址-----
            // string serverUrl = "https://openapi.alipay.com/gateway.do";

            //应用ID
            string appId = "2013092500031084";

            //商户私钥
            string privateKeyPem = GetCurrentPath()+"aop-sandbox-RSA-private-c#.pem";

            IAopClient client = new AlipayMobilePublicMultiMediaClient(serverUrl, appId, privateKeyPem, "json","GBK");

            return client;
        }