/** * Alipay.com Inc. * Copyright (c) 2004-2014 All Rights Reserved. */ package com.alipay.constants; /** * 支付宝服务窗环境常量(demo中常量只是参考,需要修改成自己的常量值) * * @author taixu.zqq * @version $Id: AlipayServiceConstants.java, v 0.1 2014年7月24日 下午4:33:49 taixu.zqq Exp $ */ public class AlipayServiceEnvConstants { /**支付宝公钥-从支付宝服务窗获取*/ public static final String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB"; /**签名编码-视支付宝服务窗要求*/ public static final String SIGN_CHARSET = "GBK"; /**字符编码-传递给支付宝的数据编码*/ public static final String CHARSET = "GBK"; /**签名类型-视支付宝服务窗要求*/ public static final String SIGN_TYPE = "RSA"; public static final String PARTNER = "2088911227080000"; /** 服务窗appId */ //TODO !!!! 注:该appId必须设为开发者自己的服务窗id 这里只是个测试id public static final String APP_ID = "2015050800060000"; //开发者请使用openssl生成的密钥替换此处 请看文档:https://fuwu.alipay.com/platform/doc.htm#2-1接入指南 //TODO !!!! 注:该私钥为测试账号私钥 开发者必须设置自己的私钥 , 否则会存在安全隐患 public static final String PRIVATE_KEY = "MIICXQIBAAKBgQC3MApzmgIBtsHOgMlkiK7co4OILJgHeyjc8MOhL0xIkRSKlkUT" +"RPkn1i+0VlJxCRJDU3703656VAFmTv0uk4FvRLzEiWxotW+cO6Zw3LG56rXqPXhT" +"jI9upRlC/6F44l85KFGCr4f0ioPNeuFj4k5CMSMCQ1k/QeSMu/aim0MshQIDAQAB" +"AoGBAI0xYQzjCmLpyw1wZEmxtB1phorh3Df/7GoGxLIqs4BHGm8LDaihg+z5gIFd" +"+2MWW9Y6t+LjuSaeMwn5HdnVZW/gotP6yC8ZARzq9qHLhQZFfZb9lESWl2dKJV0U" +"/McLiZCSqIuTQOKv3jjd2OWr5/i1PpDmdXHJavzFz0b5t4ctAkEA4Da/cYmKFZu0" +"aKvkEJF35Q9VEv+9hYYRqoXqtT0zCi4MLRTFJHmcQmHoB1gzfoYBXIeqwAREK1ZE" +"nLB9ZHEXRwJBANEoWuLsvNXCp4vYtQQp8FfyFVW3Cca72pDx6Fd6XTTWT5mLvT7F" +"Jy8oYnqEBvRsweqe7eQB5lm9Bd/P7iPjm9MCQDK50Cg0sMvgtTk1IlzpPFHTXTD2" +"MP+DbH3C3G3ykZiNAG42k7+Dz+lo0yDOQKAwWyB/BQ96J54SX2V/vG6780MCQQCT" +"Aek3nCtxlzpJ+cvpHE0Yk0dZkqglbb3GqLCkY5YFYChchLJD3zCWXa0x7YAx5gs6" +"C/CqlIdCRbBOSghYY08PAkAMlOp/+APluJNYcPo5aouhqyzBs1JQeI2K76d/2rrM" +"WsbE/NgiD1V7yQFcy1fno+MonlYsKaHd6CspaHaU6HN/"; //TODO !!!! 注:该公钥为测试账号公钥 开发者必须设置自己的公钥 ,否则会存在安全隐患 public static final String PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3MApzmgIBtsHOgMlkiK7co4OI" +"LJgHeyjc8MOhL0xIkRSKlkUTRPkn1i+0VlJxCRJDU3703656VAFmTv0uk4FvRLzE" +"iWxotW+cO6Zw3LG56rXqPXhTjI9upRlC/6F44l85KFGCr4f0ioPNeuFj4k5CMSMC" +"Q1k/QeSMu/aim0MshQIDAQAB"; /**支付宝网关*/ public static final String ALIPAY_GATEWAY = "https://openapi.alipay.com/gateway.do"; /**授权访问令牌的授权类型*/ public static final String GRANT_TYPE = "authorization_code"; }
java支付宝支付参数有哪些_java运行支付宝的一些参数
最新推荐文章于 2022-08-01 15:56:23 发布