💄添加说明文档

This commit is contained in:
sunxiaolong
2024-01-17 00:36:53 +08:00
parent 9b75eade17
commit 02503b24f7
2 changed files with 41 additions and 1 deletions

View File

@@ -18,7 +18,6 @@ dbbase = juhe_pay
[gateway]
url = http://localhost:12309
notifyAddr = localhost
key = BjI@3@N5XeU7kLP5$MppMobz$3ljek7d
[secret]
key = thisis32bitlongpassphraseimusing

View File

@@ -3,6 +3,47 @@
> AppKey
> AppSecret:
### 请求支付页面
#### 请求参数
地址http://121.37.253.228:12305/?sign=xxx&showMM=100&linkID=736797719398
| 参数名称 | 类型 | 是否必须 | 描述 | 示例 |
|--------|--------|------|---------|---------------------------------------------------------------------|
| sign | string | 是 | 签名 | 6634ddd39796e4e0a98d6f5e919ae50ddc82edbf255f15aa2e30c5c70381e7b9648 |
| showMM | string | 是 | 显示金额 | 100 |
| linkID | string | 是 | 需要跳转的链接 | 736797719398 |
#### sign生成算法
| 参数名称 | 类型 | 是否必须 | 描述 | 示例 |
|---------------|--------|------|--------|-------------------|
| payKey | string | 是 | 支付key | 20190520123456789 |
| generatedTime | time | 是 | 支付时间 | 默认为13位当前时间 |
| duration | number | 是 | 订单存续时间 | 默认为24小时 |
#### 加密秘钥
需要通过上述三个参数加密生成sign参数sign参数需要拼接在url后面`http://121.37.253.228:12305/?sign=6634ddd39796e4e0a98d6f5e919ae50ddc82edbf255f15aa2e30c5c70381e7b96489f102aa574e70a4ea1b874685dfafec957b237b02d5980f0a22139d860c7d7a8d5c58e3dfbde606a0de08186a4d45228bcc1917a35768f1903bee921b78b118e8b31d25642737cb3e094c140c81f7&showMM=100&linkID=736797719398`
sign加密算法为AES/CBC加密数据填充模式为PKCS7填充加密key和iv如下
key = thisis32bitlongpassphraseimusing
iv = 1234567890123456
[//]: # (### 请求实际支付金额)
[//]: # ()
[//]: # (通过淘宝面额获取实际支付金额。注意,实际支付面额可能会随时修改,建议每次拉取订单前重新获取最新面额,切勿缓存。)
[//]: # ()
[//]: # (接口http://localhost/gateway/getAllowedMM)
[//]: # (请求方式GET)
[//]: # ()
### 请求订单(创建订单)
接口http://localhost/gateway/scan