mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 重试订单退款接口
This commit is contained in:
@@ -695,4 +695,23 @@ public class AdapayMemberService {
|
||||
log.info("汇付支付创建交易撤销对象param:{}, result:{}", JSON.toJSONString(reverseParams), jsonString);
|
||||
return JSONObject.parseObject(jsonString, PaymentReverseResponse.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询支付撤销对象
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public List<PaymentReverse> queryPaymentReverse(String paymentId, String wechatAppId) throws BaseAdaPayException {
|
||||
AbstractAdapayConfig config = AdapayConfigFactory.getConfig(wechatAppId);
|
||||
if (config == null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_CONFIG_IS_NULL_ERROR);
|
||||
}
|
||||
Map<String, Object> reverse = Maps.newHashMap();
|
||||
reverse.put("payment_id", paymentId);
|
||||
reverse.put("app_id", config.getAdapayAppId());
|
||||
Map<String, Object> response = PaymentReverse.queryList(reverse, config.getWechatAppId());
|
||||
JSONObject jsonObject = JSON.parseObject(JSON.toJSONString(response));
|
||||
List<PaymentReverse> payment_reverses = jsonObject.getList("payment_reverses", PaymentReverse.class);
|
||||
return payment_reverses;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user