mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-07 19:46:15 +08:00
新增刷脸支付
This commit is contained in:
@@ -211,7 +211,9 @@ public class WxPayService extends BasePayService<WxPayConfigStorage> {
|
||||
setSign(parameters);
|
||||
|
||||
String requestXML = XML.getMap2Xml(parameters);
|
||||
LOG.debug("requestXML:" + requestXML);
|
||||
if (LOG.isDebugEnabled()){
|
||||
LOG.debug("requestXML:" + requestXML);
|
||||
}
|
||||
//调起支付的参数列表
|
||||
JSONObject result = requestTemplate.postForObject(getUrl(order.getTransactionType()), requestXML, JSONObject.class);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original huodull or egan.
|
||||
* Copyright 2002-2017 the original egan or egan.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -47,6 +47,17 @@ public enum WxTransactionType implements TransactionType {
|
||||
* 移动支付
|
||||
*/
|
||||
APP("pay/unifiedorder"),
|
||||
/**
|
||||
* 刷
|
||||
脸支付
|
||||
*/
|
||||
FACEPAY("pay/facepay"){
|
||||
@Override
|
||||
public void setAttribute(Map<String, Object> parameters, PayOrder order) {
|
||||
parameters.put("openid", order.getOpenid());
|
||||
parameters.put("face_code", order.getAuthCode());
|
||||
}
|
||||
},
|
||||
/**
|
||||
* H5支付
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user