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 a51941d commit 40dbfcc
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 40 deletions.
Binary file modified _build/doctrees/environment.pickle
Binary file not shown.
Binary file modified _build/doctrees/index.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion _build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 02d55bcbe475dd0538f119a281b4f327
config: 2d8b93728dd878272fef8a3d7f84f1f5
tags: 645f666f9bcd5a90fca523b33c5a78b7
135 changes: 109 additions & 26 deletions _build/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -184,27 +184,94 @@ <h1>付款<a class="headerlink" href="#id5" title="Permalink to this headline">
<h2>创建交易<a class="headerlink" href="#id6" title="Permalink to this headline"></a></h2>
<blockquote>
<div>系统把创建交易的能力以API的形式开放给商家,使您能用更灵活的方式集成开发支付功能。此API用于创建商家自己的自定义结帐页面,因此买家不必离开商家的网站即可完成付款。</div></blockquote>
<p>| 接口说明 | |
| ———— | ———— |
| 请求路径 | http://{host}/api/v1/submit_trans |
| 请求方式 | POST |
| Content-Type | application/json |
| 字符编码 | UTF-8 |</p>
<p>请求参数说明</p>
<p>| 参数 | 类型 | 备注 |
| ———— | ———— | ———— |
| sign | string | 签名 |
| pubkey | string | 系统分配的公钥 |
| item_name | string | (可选)此交易的商品名 |
| state | string | (可选)此交易的code码,该code码将在回调时通知给商家,用于商家识别订单 |</p>
<p>响应参数说明</p>
<p>| 参数 | 类型 | 备注 |
| ———— | ———— | ———— |
| status | integer | 系统状态码,=0为操作成功,&gt;0为操作失败,msg有相关错误说明 |
| msg | string | 当status&gt;0时,错误说明信息(该字段在status=0时返回交易TXID)|
| data | object | 交易实体对象 |
| expired_at | datetime | 交易过期时间,过期后订单结束,不再回调通知 |</p>
<p>请求示例</p>
<table border="1" class="docutils">
<thead>
<tr>
<th>接口说明</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td>请求路径</td>
<td>http://{host}/api/v1/submit_trans</td>
</tr>
<tr>
<td>请求方式</td>
<td>POST</td>
</tr>
<tr>
<td>Content-Type</td>
<td>application/json</td>
</tr>
<tr>
<td>字符编码</td>
<td>UTF-8</td>
</tr>
</tbody>
</table><p>请求参数说明</p>
<table border="1" class="docutils">
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>sign</td>
<td>string</td>
<td>签名</td>
</tr>
<tr>
<td>pubkey</td>
<td>string</td>
<td>系统分配的公钥</td>
</tr>
<tr>
<td>item_name</td>
<td>string</td>
<td>(可选)此交易的商品名</td>
</tr>
<tr>
<td>state</td>
<td>string</td>
<td>(可选)此交易的code码,该code码将在回调时通知给商家,用于商家识别订单</td>
</tr>
</tbody>
</table><p>响应参数说明</p>
<table border="1" class="docutils">
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<tr>
<td>status</td>
<td>integer</td>
<td>系统状态码,=0为操作成功,&gt;0为操作失败,msg有相关错误说明</td>
</tr>
<tr>
<td>msg</td>
<td>string</td>
<td>当status&gt;0时,错误说明信息(该字段在status=0时返回交易TXID)</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>交易实体对象</td>
</tr>
<tr>
<td>expired_at</td>
<td>datetime</td>
<td>交易过期时间,过期后订单结束,不再回调通知</td>
</tr>
</tbody>
</table><p>请求示例</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">{</span>
<span class="s2">&quot;sign&quot;</span><span class="p">:</span> <span class="s2">&quot;42306036e6345609e5c4edd6bc830c4bfc9575d306a4d2950d3611e29ee798267953f010cba0f7471842c0f27e83e59018ea01c345f82be07c3e5f148c822dbc&quot;</span><span class="p">,</span>
<span class="s2">&quot;pubkey&quot;</span><span class="p">:</span> <span class="s2">&quot;0b6dbe660366b5a8b3ccbfeec373eeec1567b89a96fe0c5ef502091cc8249c42&quot;</span><span class="p">,</span>
Expand All @@ -213,11 +280,27 @@ <h2>创建交易<a class="headerlink" href="#id6" title="Permalink to this headl
<span class="p">}</span>
</pre></div>
</div>
<p>First Header | Second Header | Third Header
———— | ————- | ————
Content Cell | Content Cell | Content Cell
Content Cell | Content Cell | Content Cell</p>
</div>
<table border="1" class="docutils">
<thead>
<tr>
<th>First Header</th>
<th>Second Header</th>
<th>Third Header</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content Cell</td>
<td>Content Cell</td>
<td>Content Cell</td>
</tr>
<tr>
<td>Content Cell</td>
<td>Content Cell</td>
<td>Content Cell</td>
</tr>
</tbody>
</table></div>
<div class="section" id="id7">
<h2>查询交易<a class="headerlink" href="#id7" title="Permalink to this headline"></a></h2>
<blockquote>
Expand Down
2 changes: 1 addition & 1 deletion _build/html/searchindex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 11 additions & 12 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,7 @@
import sys
sys.path.insert(0, os.path.abspath('.'))

extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx_markdown_tables',


]

# -- Project information -----------------------------------------------------

Expand All @@ -53,6 +41,17 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx_markdown_tables',


]

# Add any paths that contain templates here, relative to this directory.
Expand Down

0 comments on commit 40dbfcc

Please sign in to comment.