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); }
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; }