对接支付开发
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.ruoyi.ali;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* ZFBConstant
|
||||
* @description 支付宝相关的常量
|
||||
*/
|
||||
public class AlipayConstant {
|
||||
|
||||
public static final String SUCCESS = "SUCCESS";
|
||||
|
||||
public static final String FAIL = "FAIL";
|
||||
|
||||
/**
|
||||
* 交易状态(用于转换)
|
||||
*/
|
||||
public static final Map<String,String> TRADE_STATE = new HashMap<String,String>(){
|
||||
{
|
||||
put("TRADE_SUCCESS", "SUCCESS");
|
||||
put("WAIT_BUYER_PAY", "NOTPAY");
|
||||
put("TRADE_CLOSED", "CLOSED");
|
||||
put("TRADE_FINISHED", "FINISHED");
|
||||
}
|
||||
};
|
||||
|
||||
public static final String domain="https://openapi.alipay.com/gateway.do";
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user