-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hookszhang
committed
Aug 2, 2016
1 parent
0d1ed6d
commit 9e17bc1
Showing
4 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# 银联支付 通用API | ||
|
||
> [银联网上支付-产品大全](https://open.unionpay.com/ajweb/product) | ||
## 签名与验证签名 | ||
**前后台接收通知时一定要验证签名,以防财产损失** | ||
```java | ||
Map<String, String> allRequestMap = AcpService.getAllRequestParam(request.getParameterMap()); | ||
boolean isSign = AcpService.validate(allRequestMap, Acp.encoding_UTF8); | ||
``` | ||
调用时会抛出`SignValidateFailException`异常的方法无需再次验证签名,捕获异常并根据业务逻辑处理即可 |