251 lines
12 KiB
HTML
251 lines
12 KiB
HTML
<!doctype html>
|
|
<html class="default no-js">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>OrderResult | React Native Alipay</title>
|
|
<meta name="description" content="Documentation for React Native Alipay">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="../assets/css/main.css">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<div class="tsd-page-toolbar">
|
|
<div class="container">
|
|
<div class="table-wrap">
|
|
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
<div class="field">
|
|
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
<input id="tsd-search-field" type="text" />
|
|
</div>
|
|
<ul class="results">
|
|
<li class="state loading">Preparing search index...</li>
|
|
<li class="state failure">The search index is not available</li>
|
|
</ul>
|
|
<a href="../index.html" class="title">React Native Alipay</a>
|
|
</div>
|
|
<div class="table-cell" id="tsd-widgets">
|
|
<div id="tsd-filter">
|
|
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
<div class="tsd-filter-group">
|
|
<div class="tsd-select" id="tsd-filter-visibility">
|
|
<span class="tsd-select-label">All</span>
|
|
<ul class="tsd-select-list">
|
|
<li data-value="public">Public</li>
|
|
<li data-value="protected">Public/Protected</li>
|
|
<li data-value="private" class="selected">All</li>
|
|
</ul>
|
|
</div>
|
|
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
<input type="checkbox" id="tsd-filter-only-exported" />
|
|
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
|
</div>
|
|
</div>
|
|
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tsd-page-title">
|
|
<div class="container">
|
|
<ul class="tsd-breadcrumb">
|
|
<li>
|
|
<a href="../globals.html">Globals</a>
|
|
</li>
|
|
<li>
|
|
<a href="orderresult.html">OrderResult</a>
|
|
</li>
|
|
</ul>
|
|
<h1>Interface OrderResult</h1>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div class="container container-main">
|
|
<div class="row">
|
|
<div class="col-8 col-content">
|
|
<section class="tsd-panel tsd-comment">
|
|
<div class="tsd-comment tsd-typography">
|
|
<div class="lead">
|
|
<p>支付订单返回结果</p>
|
|
</div>
|
|
<dl class="tsd-comment-tags">
|
|
<dt>returns</dt>
|
|
<dd><p>成功返回</p>
|
|
<pre><code class="language-json">{
|
|
result: '{"alipay_trade_app_pay_response":{"code":"10000","msg":"Success","app_id":"2021001172656340","auth_app_id":"2021001172656340","charset":"UTF-8","timestamp":"2020-07-08 21:30:14","out_trade_no":"123123213123214","total_amount":"0.01","trade_no":"2020070822001414841426413774","seller_id":"2088421915791034"},"sign":"LY7wCsNLp+QnDqCq6VelY/RvyK7ZGY8wsXoKvS+Or7JjONLDUx5P6lDgqRKkpkng7br3y6GZzfGKaZ88Tf4eMnBMKyqU+huR2Um47xUxP383njvHlxuQZsSTLQZRswy4wmb/fPkFfvyH6Or6+oj0eboePOTu63bNr+h03w0QnP4znuHpfRuoVgWpsYh/6B1DL+4xfWRKJ21zm1SV9Feo9RWqnyTaGZyFVi6IKge0dUCYs9hXju95fOUVUOx5YflOFtSEnZafY9Ls4FCRQE1ANkjaKiKIE0+c4c4sEVEf/9Dwh88N+aSQOoLT+AV4RpjMoA8hF2k+vv2OKNeqr6SYGQ==","sign_type":"RSA2"}',
|
|
resultStatus: '9000',
|
|
memo: ''
|
|
}</code></pre>
|
|
</dd>
|
|
<dt>returns</dt>
|
|
<dd><p>错误返回</p>
|
|
<pre><code class="language-json">{
|
|
memo: "Error Domain=系统繁忙,请稍后再试 Code=1000 \"(null)\"",
|
|
result: "",
|
|
resultStatus: "4000",
|
|
}</code></pre>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
<section class="tsd-panel tsd-hierarchy">
|
|
<h3>Hierarchy</h3>
|
|
<ul class="tsd-hierarchy">
|
|
<li>
|
|
<span class="target">OrderResult</span>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<section class="tsd-panel-group tsd-index-group">
|
|
<h2>Index</h2>
|
|
<section class="tsd-panel tsd-index-panel">
|
|
<div class="tsd-index-content">
|
|
<section class="tsd-index-section ">
|
|
<h3>Properties</h3>
|
|
<ul class="tsd-index-list">
|
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="orderresult.html#memo" class="tsd-kind-icon">memo</a></li>
|
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="orderresult.html#result" class="tsd-kind-icon">result</a></li>
|
|
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="orderresult.html#resultstatus" class="tsd-kind-icon">result<wbr>Status</a></li>
|
|
</ul>
|
|
</section>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
<section class="tsd-panel-group tsd-member-group ">
|
|
<h2>Properties</h2>
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
<a name="memo" class="tsd-anchor"></a>
|
|
<h3>memo</h3>
|
|
<div class="tsd-signature tsd-kind-icon">memo<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
<aside class="tsd-sources">
|
|
<ul>
|
|
<li>Defined in <a href="https://github.com/uiwjs/react-native-alipay/blob/a1ef27d/index.d.ts#L103">index.d.ts:103</a></li>
|
|
</ul>
|
|
</aside>
|
|
<div class="tsd-comment tsd-typography">
|
|
<div class="lead">
|
|
<p>优惠券备注信息
|
|
"Error Domain=系统繁忙,请稍后再试 Code=1000 "(null)""</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
<a name="result" class="tsd-anchor"></a>
|
|
<h3><span class="tsd-flag ts-flagOptional">Optional</span> result</h3>
|
|
<div class="tsd-signature tsd-kind-icon">result<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
|
|
<aside class="tsd-sources">
|
|
<ul>
|
|
<li>Defined in <a href="https://github.com/uiwjs/react-native-alipay/blob/a1ef27d/index.d.ts#L86">index.d.ts:86</a></li>
|
|
</ul>
|
|
</aside>
|
|
<div class="tsd-comment tsd-typography">
|
|
<div class="lead">
|
|
<p>支付返回结果:
|
|
支付宝支付返回结果,<a href="https://opendocs.alipay.com/open/204/105301#%E8%BF%94%E5%9B%9E%E7%BB%93%E6%9E%9C%E7%A4%BA%E4%BE%8B%EF%BC%88iOS%7CAndroid%EF%BC%89">支付宝文档地址</a>
|
|
支付返回结果字符串通过 <code>JSON.parse</code> 进行转换为对象 <a href="orderresultstr.html">OrderResultStr</a></p>
|
|
</div>
|
|
<dl class="tsd-comment-tags">
|
|
<dt>typeparam</dt>
|
|
<dd></dd>
|
|
<dt>example</dt>
|
|
<dd><pre><code class="language-json">'{"alipay_trade_app_pay_response":{"code":"10000","msg":"Success","app_id":"2021001172656340","auth_app_id":"2021001172656340","charset":"UTF-8","timestamp":"2020-07-08 21:30:14","out_trade_no":"123123213123214","total_amount":"0.01","trade_no":"2020070822001414841426413774","seller_id":"2088421915791034"},"sign":"LY7wCsNLp+QnDqCq6VelY/RvyK7ZGY8wsXoKvS+Or7JjONLDUx5P6lDgqRKkpkng7br3y6GZzfGKaZ88Tf4eMnBMKyqU+huR2Um47xUxP383njvHlxuQZsSTLQZRswy4wmb/fPkFfvyH6Or6+oj0eboePOTu63bNr+h03w0QnP4znuHpfRuoVgWpsYh/6B1DL+4xfWRKJ21zm1SV9Feo9RWqnyTaGZyFVi6IKge0dUCYs9hXju95fOUVUOx5YflOFtSEnZafY9Ls4FCRQE1ANkjaKiKIE0+c4c4sEVEf/9Dwh88N+aSQOoLT+AV4RpjMoA8hF2k+vv2OKNeqr6SYGQ==","sign_type":"RSA2"}'</code></pre>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</section>
|
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
<a name="resultstatus" class="tsd-anchor"></a>
|
|
<h3><span class="tsd-flag ts-flagOptional">Optional</span> result<wbr>Status</h3>
|
|
<div class="tsd-signature tsd-kind-icon">result<wbr>Status<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"9000"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"8000"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"4000"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"5000"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"6001"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"6002"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"6004"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div>
|
|
<aside class="tsd-sources">
|
|
<ul>
|
|
<li>Defined in <a href="https://github.com/uiwjs/react-native-alipay/blob/a1ef27d/index.d.ts#L98">index.d.ts:98</a></li>
|
|
</ul>
|
|
</aside>
|
|
<div class="tsd-comment tsd-typography">
|
|
<div class="lead">
|
|
<p>错误状态码</p>
|
|
<ul>
|
|
<li>9000 订单支付成功</li>
|
|
<li>8000 正在处理中,支付结果未知(有可能已经支付成功),请查询商户订单列表中订单的支付状态</li>
|
|
<li>4000 订单支付失败</li>
|
|
<li>5000 重复请求</li>
|
|
<li>6001 用户中途取消</li>
|
|
<li>6002 网络连接出错</li>
|
|
<li>6004 支付结果未知(有可能已经支付成功),请查询商户订单列表中订单的支付状态</li>
|
|
<li>其它 其它支付错误</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
</div>
|
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
<nav class="tsd-navigation primary">
|
|
<ul>
|
|
<li class="globals ">
|
|
<a href="../globals.html"><em>Globals</em></a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
<ul class="before-current">
|
|
<li class=" tsd-kind-interface">
|
|
<a href="authresult.html" class="tsd-kind-icon">Auth<wbr>Result</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="current">
|
|
<li class="current tsd-kind-interface">
|
|
<a href="orderresult.html" class="tsd-kind-icon">Order<wbr>Result</a>
|
|
<ul>
|
|
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
<a href="orderresult.html#memo" class="tsd-kind-icon">memo</a>
|
|
</li>
|
|
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
<a href="orderresult.html#result" class="tsd-kind-icon">result</a>
|
|
</li>
|
|
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
<a href="orderresult.html#resultstatus" class="tsd-kind-icon">result<wbr>Status</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<ul class="after-current">
|
|
<li class=" tsd-kind-interface">
|
|
<a href="orderresultstr.html" class="tsd-kind-icon">Order<wbr>Result<wbr>Str</a>
|
|
</li>
|
|
<li class=" tsd-kind-function">
|
|
<a href="../globals.html#alipay" class="tsd-kind-icon">alipay</a>
|
|
</li>
|
|
<li class=" tsd-kind-function">
|
|
<a href="../globals.html#authinfo" class="tsd-kind-icon">auth<wbr>Info</a>
|
|
</li>
|
|
<li class=" tsd-kind-function">
|
|
<a href="../globals.html#getversion" class="tsd-kind-icon">get<wbr>Version</a>
|
|
</li>
|
|
<li class=" tsd-kind-function">
|
|
<a href="../globals.html#setalipaysandbox" class="tsd-kind-icon">set<wbr>Alipay<wbr>Sandbox</a>
|
|
</li>
|
|
<li class=" tsd-kind-function">
|
|
<a href="../globals.html#setalipayscheme" class="tsd-kind-icon">set<wbr>Alipay<wbr>Scheme</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<footer>
|
|
<div class="container">
|
|
<h2>Legend</h2>
|
|
<div class="tsd-legend-group">
|
|
<ul class="tsd-legend">
|
|
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
<div class="overlay"></div>
|
|
<script src="../assets/js/main.js"></script>
|
|
</body>
|
|
</html> |