微信 ConfigUtil 相关配置类

public class ConfigUtil {

/**

* 服务号相关信息

*/

public final static String APPID = "";//服务号的应用号

public final static String APP_SECRECT = "";//服务号的应用密码

public final static String WXTOKEN = "";//公众平台设置token

public final static String TOKEN = "";//服务号的配置token

public final static String ENCODINGAESKEY = "";//消息加密密钥

public final static String MCH_ID = "";//商户号

public final static String API_KEY = "";//API密钥

public final static String SIGN_TYPE = "MD5";//签名加密方式

public final static String CERT_PATH = "";//微信支付证书存放路径地址

//微信支付统一接口的回调action

public final static String NOTIFY_URL = "";

//微信支付成功支付后跳转的地址

public final static String SUCCESS_URL = "";

//oauth2授权时回调action

public final static String REDIRECT_URI = "";

/**

* 微信基础接口地址

*/

//public static String GATEURL = "https://api.weixin.qq.com/pay/genprepay?access_token=";//获取预支付id的接口url

//用户管理: 获取用户基本信息接口 /user/info

public static String BASE_USERINFO_URL = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

//通过基础token的 access_token获取签名,

public static String JSAPI_TICKET = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token=ACCESS_TOKEN&type=jsapi";

//通过code换取网页授权access_token,openid(GET)

public final static String TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

//oauth2授权接口(GET)获取code             

// public final static String OAUTH2_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_userinfo&state=STATE&component_appid=component_appid#wechat_redirect";

public final static String OAUTH2_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect";

//刷新access_token接口(GET)

public final static String REFRESH_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";

//拉取用户信息(需scope为 snsapi_userinfo)

public final static String USERINFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

//基础支持的token(GET)

public final static String BASE_TOKEN_URL="https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

// 菜单创建接口(POST)

public final static String MENU_CREATE_URL = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";

// 菜单查询(GET)

public final static String MENU_GET_URL = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";

// 菜单删除(GET)

public final static String MENU_DELETE_URL = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";

//发送客服消息(POST)

public final static String MESSAGE_SEND_URL="https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN";

/**

* 微信支付接口地址

*/

//微信支付统一接口(POST)

public final static String UNIFIED_ORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";

//微信退款接口(POST)

public final static String REFUND_URL = "https://api.mch.weixin.qq.com/secapi/pay/refund";

//订单查询接口(POST)

public final static String CHECK_ORDER_URL = "https://api.mch.weixin.qq.com/pay/orderquery";

//关闭订单接口(POST)

public final static String CLOSE_ORDER_URL = "https://api.mch.weixin.qq.com/pay/closeorder";

//退款查询接口(POST)

public final static String CHECK_REFUND_URL = "https://api.mch.weixin.qq.com/pay/refundquery";

//对账单接口(POST)

public final static String DOWNLOAD_BILL_URL = "https://api.mch.weixin.qq.com/pay/downloadbill";

//短链接转换接口(POST)

public final static String SHORT_URL = "https://api.mch.weixin.qq.com/tools/shorturl";

//接口调用上报接口(POST)

public final static String REPORT_URL = "https://api.mch.weixin.qq.com/payitil/report";

}

猜你喜欢

转载自a729812804.iteye.com/blog/2257282