mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-06 00:20:00 +08:00
微信撤销接口
This commit is contained in:
@@ -414,6 +414,17 @@ public class WxPayService extends BasePayService<WxPayConfigStorage> {
|
||||
return secondaryInterface(transactionId, outTradeNo, WxTransactionType.CLOSE);
|
||||
}
|
||||
|
||||
/**
|
||||
* 交易交易撤销
|
||||
*
|
||||
* @param transactionId 支付平台订单号
|
||||
* @param outTradeNo 商户单号
|
||||
* @return 返回支付方交易撤销后的结果
|
||||
*/
|
||||
@Override
|
||||
public Map<String, Object> cancel(String transactionId, String outTradeNo) {
|
||||
return secondaryInterface(transactionId, outTradeNo, WxTransactionType.REVERSE);
|
||||
}
|
||||
|
||||
/**
|
||||
* 退款
|
||||
|
||||
@@ -103,6 +103,10 @@ public enum WxTransactionType implements TransactionType {
|
||||
* 关闭订单
|
||||
*/
|
||||
CLOSE("pay/closeorder"),
|
||||
/**
|
||||
* 撤销订单
|
||||
*/
|
||||
REVERSE("secapi/pay/reverse"),
|
||||
/**
|
||||
* 申请退款
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user