You've already forked FrameTour-BE
微信退款、退款回调
This commit is contained in:
18
src/main/java/com/ycwl/basic/constant/HttpConstant.java
Normal file
18
src/main/java/com/ycwl/basic/constant/HttpConstant.java
Normal file
@ -0,0 +1,18 @@
|
||||
package com.ycwl.basic.constant;
|
||||
|
||||
/**
|
||||
* <p>HTTP常量类</p>
|
||||
*
|
||||
* @author songmingsong
|
||||
* @Description HTTP常量类
|
||||
*/
|
||||
public interface HttpConstant {
|
||||
String Authorization = "Authorization";
|
||||
String Accept = "Accept";
|
||||
String Content_Type = "Content-Type";
|
||||
String Application_Json = "application/json";
|
||||
String SUCCESS = "SUCCESS";
|
||||
String Message = "message";
|
||||
String AES = "AES";
|
||||
String AES_GCM_NoPadding = "AES/GCM/NoPadding";
|
||||
}
|
@ -54,6 +54,7 @@ public interface NumberConstant {
|
||||
int SIXTY = 60;
|
||||
|
||||
int HUNDRED = 100;
|
||||
int ONE_HUNDRED_TWENTY_EIGHT = 128;
|
||||
|
||||
int THOUSAND = 1000;
|
||||
|
||||
|
@ -48,7 +48,7 @@ public class WeiXinConstant {
|
||||
* 公众号模板地址
|
||||
*/
|
||||
public static final String PUBLIC_ACCOUNT_TEMPLATE =
|
||||
"https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=";
|
||||
"https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=";
|
||||
/**
|
||||
* 获取微信用户基本信息地址
|
||||
*/
|
||||
@ -78,5 +78,42 @@ public class WeiXinConstant {
|
||||
*/
|
||||
public static final String GENERATE_URL_LINK = "https://api.weixin.qq.com/wxa/generate_urllink?access_token=%s";
|
||||
|
||||
/*-----------------------------*/
|
||||
/* */
|
||||
/* 支付相关 */
|
||||
/* */
|
||||
/*-----------------------------*/
|
||||
/**
|
||||
* 退款链接
|
||||
*/
|
||||
public static final String REFUNDS_URL = "https://api.mch.weixin.qq.com/v3/refund/domestic/refunds";
|
||||
public static final String REFUNDS_URi = "/v3/refund/domestic/refunds/";
|
||||
/**
|
||||
* 其他
|
||||
*/
|
||||
public static final String WECHATPAY_STATUS = "status";
|
||||
public static final String WECHATPAY_SUCCESS = "SUCCESS";
|
||||
public static final String WECHATPAY_PROCESSING = "PROCESSING";
|
||||
public static final String WECHATPAY_OUT_TRADE_NO = "out_trade_no";
|
||||
public static final String WECHATPAY_OUT_REFUND_NO = "out_refund_no";
|
||||
public static final String WECHATPAY_REFUND = "refund";
|
||||
public static final String WECHATPAY_TOTAL = "total";
|
||||
public static final String WECHATPAY_CURRENCY = "currency";
|
||||
public static final String WECHATPAY_CURRENCY_CNY = "CNY";
|
||||
public static final String WECHATPAY_AMOUNT = "amount";
|
||||
public static final String WECHATPAY_NOTIFY_URL = "notify_url";
|
||||
|
||||
public static final String REFUNDS_RESOURCE = "resource";
|
||||
public static final String REFUNDS_CIPHERTEXT = "ciphertext";
|
||||
public static final String REFUNDS_NONCE = "nonce";
|
||||
public static final String REFUNDS_REFUND_STATUS = "refund_status";
|
||||
public static final String REFUNDS_ASSOCIATED_DATA = "associated_data";
|
||||
/**
|
||||
* 退款的token的SCHEMA
|
||||
*/
|
||||
public static final String REFUNDS_SCHEMA = "Wechatpay-Signature-Type "; // 注意有一个空格
|
||||
/**
|
||||
* 支付请求头
|
||||
*/
|
||||
public static final String WECHATPAY_SIGNATURE_TYPE = "Wechatpay-Signature-Type";
|
||||
}
|
||||
|
Reference in New Issue
Block a user