update 汇付退款添加merchantKey

This commit is contained in:
2023-08-17 11:16:32 +08:00
parent 81e3bde38e
commit 70a16ae804
7 changed files with 72 additions and 18 deletions

View File

@@ -660,7 +660,7 @@ public class AdapayMemberService {
* 创建交易撤销请求
* 延迟分账未确认, 调交易撤销接口退款
*/
public PaymentReverseResponse createPaymentReverseRequest(String paymentId, BigDecimal reverseAmt) {
public PaymentReverseResponse createPaymentReverseRequest(String paymentId, BigDecimal reverseAmt, String merchantKey) {
PaymentReverseResponse response;
// 延迟分账未确认调撤销调撤销接口退款
Map<String, Object> reverseParams = Maps.newHashMap();
@@ -671,7 +671,7 @@ public class AdapayMemberService {
reverseParams.put("notify_url", ADAPAY_CALLBACK_URL);
Map<String, Object> paymentReverse = null;
try {
paymentReverse = PaymentReverse.create(reverseParams);
paymentReverse = PaymentReverse.create(reverseParams, merchantKey);
} catch (BaseAdaPayException e) {
log.error("汇付支付创建交易撤销对象error", e);
}