1
0
mirror of synced 2026-10-28 03:06:11 +08:00

🎨 兼容旧版退款提现通知解析

This commit is contained in:
Binary Wang
2026-08-18 12:44:36 +08:00
committed by GitHub
parent 2f1aa7bd09
commit 6a4f0db39e
2 changed files with 26 additions and 0 deletions

View File

@@ -17,4 +17,12 @@ public class LegacyEcommerceApiCompatibilityTest {
Assert.assertNotNull(result);
Assert.assertEquals(TradeTypeEnum.JSAPI.name(), "JSAPI");
}
@Test
public void shouldKeepLegacyRefundAndWithdrawNotificationSignatures() throws Exception {
Class<?> legacyHeader = com.github.binarywang.wxpay.bean.ecommerce.SignatureHeader.class;
Assert.assertNotNull(EcommerceService.class.getMethod("parseRefundNotifyResult", String.class, legacyHeader));
Assert.assertNotNull(EcommerceService.class.getMethod("parseWithdrawNotifyResult", String.class, legacyHeader));
}
}