mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-02 05:50:29 +08:00
增加预订单回调处理,用于扩展信息
This commit is contained in:
@@ -62,6 +62,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
* 获取对应的请求地址
|
||||
* @return 请求地址
|
||||
*/
|
||||
@Override
|
||||
public String getReqUrl(TransactionType transactionType){
|
||||
return payConfigStorage.isTest() ? DEV_URL_FUIOU_BASE_DOMAIN : URL_FUIOU_BASE_DOMAIN;
|
||||
}
|
||||
@@ -152,7 +153,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> orderInfo(PayOrder order) {
|
||||
LinkedHashMap<String, Object> parameters = getOrderInfo(order);
|
||||
Map<String, Object> parameters = getOrderInfo(order);
|
||||
String sign = createSign(SignUtils.parameters2MD5Str(parameters, "|"), payConfigStorage.getInputCharset());
|
||||
parameters.put("md5", sign);
|
||||
return parameters;
|
||||
@@ -163,7 +164,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
* @param order 支付订单
|
||||
* @return 返回支付请求参数集合
|
||||
*/
|
||||
private LinkedHashMap<String, Object> getOrderInfo(PayOrder order) {
|
||||
private Map<String, Object> getOrderInfo(PayOrder order) {
|
||||
LinkedHashMap<String, Object> parameters = new LinkedHashMap<String, Object>();
|
||||
//商户代码
|
||||
parameters.put("mchnt_cd", payConfigStorage.getPid());
|
||||
@@ -195,7 +196,7 @@ public class FuiouPayService extends BasePayService<FuiouPayConfigStorage> {
|
||||
parameters.put("rem", "");
|
||||
//版本号
|
||||
parameters.put("ver", "1.0.1");
|
||||
return parameters;
|
||||
return preOrderHandler(parameters, order);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user