pay-platform-channel-note/ant.md

53 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 蚂蚁租赁平台相关调研笔记
## 0. SDK
> 官方描述
> 本产品通过蚂蚁链网关统一对外提供 API 服务,网关提供统一的 SDK客户引入使用即可。同时调用 API 的 Client 统一申明即可Client 初始化一次即可然后可以调用不同接口Client 不需要每个接口都初始化一个 ClientClient 创建会占用线程池及网络建链,相对耗时,因此一次性创建使用即可
- SDK:
- 官方有提供 golang 相关 SDK 引入即可
- Golang
```bash
## 需要安装 go依赖指令如下({version}为版本号)
## https://github.com/antchain-openapi-sdk-go/ato
go get github.com/antchain-openapi-sdk-go/ato@{version}
```
## 1. 合约
### 1.1 签约
1. 前置准备
1. 商户进件
2. 参考 雷神账号 后台管理界面
### 1.2 签约查询
### 1.3 解约
### 1.4 解约查询
### 1.5 处理 异步通知
---
## 2. 订单支付
### 2.1 支付扣款
### 2.2 支付扣款查询
### 2.3 退款
### 2.4 退款查询
### 2.5 处理 异步通知
```
```