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";
}
相关推荐
4. **ConfigUtil.java**: 配置工具类,通常用来管理微信支付相关的配置信息,如应用号(AppID)、商户号(MchID)、API密钥(API Key)等。这些信息是与微信支付平台进行通信的基础,开发者需要将自己申请的微信支付...
9. **安全与合规**:在实际应用中,必须遵循微信支付的开发规范,确保资金安全,同时遵守相关的法律法规,如实名制规定、反洗钱政策等。 总的来说,Java实现微信企业付款到个人功能涉及了支付安全、网络通信、数据...
- **ConfigUtil**:配置工具类,用于设置ShardSdk的相关参数。 - **CallbackActivity**:回调活动,用于接收ShardSdk的登录结果。 - **第三方登录平台的配置文件**:例如微信的“wx_api.xml”,QQ的“qq_appid.xml”...