1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
react-native-alipay/globals.html

308 lines
14 KiB
HTML
Raw Normal View History

<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Alipay | 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">Alipay</a>
</li>
</ul>
<h1>Namespace Alipay</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>支付宝支付,基于 React Native 的支付宝插件支持Android/iOS。</p>
</div>
</div>
</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>Interfaces</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="interfaces/alipay.authresult.html" class="tsd-kind-icon">Auth<wbr>Result</a></li>
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="interfaces/alipay.orderresult.html" class="tsd-kind-icon">Order<wbr>Result</a></li>
<li class="tsd-kind-interface tsd-parent-kind-namespace"><a href="interfaces/alipay.orderresultstr.html" class="tsd-kind-icon">Order<wbr>Result<wbr>Str</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Functions</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="globals.html#alipay-1" class="tsd-kind-icon">alipay</a></li>
<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="globals.html#authinfo" class="tsd-kind-icon">auth<wbr>Info</a></li>
<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="globals.html#getversion" class="tsd-kind-icon">get<wbr>Version</a></li>
<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="globals.html#setalipaysandbox" class="tsd-kind-icon">set<wbr>Alipay<wbr>Sandbox</a></li>
<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="globals.html#setalipayscheme" class="tsd-kind-icon">set<wbr>Alipay<wbr>Scheme</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Functions</h2>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
<a name="alipay-1" class="tsd-anchor"></a>
<h3>alipay</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
<li class="tsd-signature tsd-kind-icon">alipay<span class="tsd-signature-symbol">(</span>payInfo<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="interfaces/alipay.orderresult.html" class="tsd-signature-type">OrderResult</a><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/uiwjs/react-native-alipay/blob/0d9d70f/index.d.ts#L140">index.d.ts:140</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>支付</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>payInfo: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>支付详情</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="interfaces/alipay.orderresult.html" class="tsd-signature-type">OrderResult</a><span class="tsd-signature-symbol">&gt;</span></h4>
<p>result 支付宝回调结果 <a href="https://docs.open.alipay.com/204/105301">https://docs.open.alipay.com/204/105301</a></p>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
<a name="authinfo" class="tsd-anchor"></a>
<h3>auth<wbr>Info</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
<li class="tsd-signature tsd-kind-icon">auth<wbr>Info<span class="tsd-signature-symbol">(</span>authInfoStr<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="interfaces/alipay.authresult.html" class="tsd-signature-type">AuthResult</a><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/uiwjs/react-native-alipay/blob/0d9d70f/index.d.ts#L146">index.d.ts:146</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>快速登录授权</p>
</div>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>authInfoStr: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>验证详情</p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="interfaces/alipay.authresult.html" class="tsd-signature-type">AuthResult</a><span class="tsd-signature-symbol">&gt;</span></h4>
<p>result 支付宝回调结果 <a href="https://opendocs.alipay.com/open/218/105327">https://opendocs.alipay.com/open/218/105327</a></p>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
<a name="getversion" class="tsd-anchor"></a>
<h3>get<wbr>Version</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
<li class="tsd-signature tsd-kind-icon">get<wbr>Version<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/uiwjs/react-native-alipay/blob/0d9d70f/index.d.ts#L151">index.d.ts:151</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p> 获取当前 SDK 版本号</p>
</div>
</div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4>
<p>当前 SDK 版本字符串</p>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
<a name="setalipaysandbox" class="tsd-anchor"></a>
<h3>set<wbr>Alipay<wbr>Sandbox</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
<li class="tsd-signature tsd-kind-icon">set<wbr>Alipay<wbr>Sandbox<span class="tsd-signature-symbol">(</span>isSandbox<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/uiwjs/react-native-alipay/blob/0d9d70f/index.d.ts#L163">index.d.ts:163</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>设置支付宝沙箱环境,仅 Android</p>
</div>
<dl class="tsd-comment-tags">
<dt>platform</dt>
<dd><p>android</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>isSandbox: <span class="tsd-signature-type">boolean</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-namespace">
<a name="setalipayscheme" class="tsd-anchor"></a>
<h3>set<wbr>Alipay<wbr>Scheme</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-namespace">
<li class="tsd-signature tsd-kind-icon">set<wbr>Alipay<wbr>Scheme<span class="tsd-signature-symbol">(</span>scheme<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/uiwjs/react-native-alipay/blob/0d9d70f/index.d.ts#L157">index.d.ts:157</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
<div class="lead">
<p>设置支付宝跳转Scheme仅 iOS</p>
</div>
<dl class="tsd-comment-tags">
<dt>platform</dt>
<dd><p>ios</p>
</dd>
</dl>
</div>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>scheme: <span class="tsd-signature-type">string</span></h5>
<div class="tsd-comment tsd-typography">
<p>scheme = <code>ap</code> + <code>APPID</code></p>
</div>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="current tsd-kind-namespace">
<a href="globals.html">Alipay</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
<li class=" tsd-kind-interface tsd-parent-kind-namespace">
<a href="interfaces/alipay.authresult.html" class="tsd-kind-icon">Auth<wbr>Result</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-namespace">
<a href="interfaces/alipay.orderresult.html" class="tsd-kind-icon">Order<wbr>Result</a>
</li>
<li class=" tsd-kind-interface tsd-parent-kind-namespace">
<a href="interfaces/alipay.orderresultstr.html" class="tsd-kind-icon">Order<wbr>Result<wbr>Str</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-namespace">
<a href="globals.html#alipay-1" class="tsd-kind-icon">alipay</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-namespace">
<a href="globals.html#authinfo" class="tsd-kind-icon">auth<wbr>Info</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-namespace">
<a href="globals.html#getversion" class="tsd-kind-icon">get<wbr>Version</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-namespace">
<a href="globals.html#setalipaysandbox" class="tsd-kind-icon">set<wbr>Alipay<wbr>Sandbox</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-namespace">
<a href="globals.html#setalipayscheme" class="tsd-kind-icon">set<wbr>Alipay<wbr>Scheme</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="assets/js/main.js"></script>
</body>
</html>