Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
hushulin committed Mar 2, 2020
1 parent a030400 commit 5fbac5e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,39 @@

> 查询交易能力开放是为了商家更好的控制自己的自定义结帐页面,前端可以采取轮询的方式请求此接口,以获得订单实时状态。也可以通过此接口获取到的过期时间设置定时器,定时关闭订单以达到控制交易的效果。
| 接口说明 | |
| ------------ | ------------ |
| 请求路径 | http://{host}/api/v1/query_trans |
| 请求方式 | GET |
| Content-Type | N/A |
| 字符编码 | UTF-8 |


请求参数说明

| 参数 | 类型 | 备注 |
| ------------ | ------------ | ------------ |
| sign | string | 签名 |
| pubkey | string | 系统分配的公钥 |
| uniqid | uuid | 交易的TXID |

响应参数说明

| 参数 | 类型 | 备注 |
| ------------ | ------------ | ------------ |
| status | integer | 系统状态码,=0为操作成功,>0为操作失败,msg有相关错误说明 |
| msg | string | 当status>0时,错误说明信息(该字段在status=0时返回交易TXID)|
| data | object | 交易实体对象 |
| expired_at | datetime | 交易过期时间,过期后订单结束,不再回调通知 |

请求示例

```
http://{host}/api/v1/query_trans?sign=42306036e6345609e5c4edd6bc830c4bfc9575d306a4d2950d3611e29ee798267953f010cba0f7471842c0f27e83e59018ea01c345f82be07c3e5f148c822dbc&pubkey=0b6dbe660366b5a8b3ccbfeec373eeec1567b89a96fe0c5ef502091cc8249c42&uniqid=3a6765db-5d2c-4907-8e32-36dbb5e31170
```



#### 回调地址


Expand Down

0 comments on commit 5fbac5e

Please sign in to comment.