| | |
| | | public final static String APP_AUTH_TOKEN = "APP_AUTH_TOKEN"; |
| | | |
| | | /** |
| | | * 格式化 |
| | | */ |
| | | public final static String ALIPAY_SERVICE = "ALIPAY_SERVICE"; |
| | | |
| | | |
| | | /** |
| | | * 签名类型 |
| | | */ |
| | | public final static String SIGN_TYPE = "RSA2"; |
| | |
| | | CommunitySettingFactory.getValue(communityId, "APP_PRIVATE_KEY"), |
| | | "json", "UTF-8", CommunitySettingFactory.getValue(communityId, "ALIPAY_PUBLIC_KEY"), "RSA2"); |
| | | AlipayTradePayRequest request = new AlipayTradePayRequest(); |
| | | if (!StringUtil.isEmpty(CommunitySettingFactory.getValue(communityId, APP_AUTH_TOKEN))) { |
| | | String aliPayService = CommunitySettingFactory.getValue(communityId,ALIPAY_SERVICE); |
| | | if ("ON".equals(aliPayService)) { |
| | | request.putOtherTextParam("app_auth_token", CommunitySettingFactory.getValue(communityId, APP_AUTH_TOKEN)); |
| | | } |
| | | JSONObject bizContent = new JSONObject(); |
| | |
| | | "json", "UTF-8", |
| | | CommunitySettingFactory.getValue(communityId, "ALIPAY_PUBLIC_KEY"), "RSA2"); |
| | | AlipayTradeQueryRequest request = new AlipayTradeQueryRequest(); |
| | | if (!StringUtil.isEmpty(CommunitySettingFactory.getValue(communityId, APP_AUTH_TOKEN))) { |
| | | String aliPayService = CommunitySettingFactory.getValue(communityId,ALIPAY_SERVICE); |
| | | if ("ON".equals(aliPayService)) { |
| | | request.putOtherTextParam("app_auth_token", CommunitySettingFactory.getValue(communityId, APP_AUTH_TOKEN)); |
| | | } |
| | | request.setBizContent("{" + |