{"id":14969979,"url":"https://github.com/uiwjs/react-native-alipay","last_synced_at":"2025-05-15T20:07:24.943Z","repository":{"id":42572814,"uuid":"277963074","full_name":"uiwjs/react-native-alipay","owner":"uiwjs","description":"基于 React Native 的宝支付包，已更新到最新的支付宝 SDK 版本，支持Android/iOS。","archived":false,"fork":false,"pushed_at":"2025-04-20T04:52:02.000Z","size":28052,"stargazers_count":227,"open_issues_count":44,"forks_count":52,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-15T20:06:42.902Z","etag":null,"topics":["alipay","android","ios","react-native","reactjs","uiw","uiwjs"],"latest_commit_sha":null,"homepage":"https://uiwjs.github.io/react-native-alipay/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uiwjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-08T01:47:48.000Z","updated_at":"2025-05-14T06:10:00.000Z","dependencies_parsed_at":"2023-01-22T14:46:07.317Z","dependency_job_id":"657fcd34-f737-4b2b-bb06-94b17bd01142","html_url":"https://github.com/uiwjs/react-native-alipay","commit_stats":{"total_commits":141,"total_committers":7,"mean_commits":"20.142857142857142","dds":0.07801418439716312,"last_synced_commit":"f6198e23f422ddf621148a283303d899f9419896"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwjs%2Freact-native-alipay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwjs%2Freact-native-alipay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwjs%2Freact-native-alipay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiwjs%2Freact-native-alipay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiwjs","download_url":"https://codeload.github.com/uiwjs/react-native-alipay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414501,"owners_count":22067272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alipay","android","ios","react-native","reactjs","uiw","uiwjs"],"created_at":"2024-09-24T13:42:47.714Z","updated_at":"2025-05-15T20:07:19.899Z","avatar_url":"https://github.com/uiwjs.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://uiwjs.github.io/react-native-alipay/\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/1680273/89095947-f0046900-d404-11ea-83ec-2408267efaa7.png\" height=\"100\" /\u003e\n  \u003c/a\u003e\n  \u003ch1 align=\"center\"\u003e@uiw/react-native-alipay\u003c/h1\u003e\n\u003cp\u003e\n\n\n[![NPM Version](https://img.shields.io/npm/v/@uiw/react-native-alipay.svg)](https://npmjs.org/package/@uiw/react-native-alipay)\n![David](https://img.shields.io/david/peer/uiwjs/react-native-alipay)\n\n基于 React Native 的宝支付插件，支持 iOS/Android。适用于商家在 App 应用中集成支付宝支付功能，商家 APP 调用支付宝提供的 SDK，SDK 再调用支付宝 APP 内的支付模块。如果用户已安装支付宝APP，商家APP会跳转到支付宝中完成支付，支付完后跳回到商家 APP 内，最后展示支付结果。如果用户没有安装支付宝 APP，商家 APP 内会调起支付宝网页支付收银台，用户登录支付宝账户，支付完后展示支付结果。完整实例 [Example](./example) | [完整的接口文档](https://uiwjs.github.io/react-native-alipay/)\n\n![](https://gw.alipayobjects.com/zos/skylark-tools/public/files/c0aa8379f5f57c55f1e5bf25e6f426d1.png)\n\n![](https://gw.alipayobjects.com/zos/skylark-tools/public/files/2454bffde14f428b2eeb2bfb6aa28d6b.png)\n\n\u003e ⚠️ `4.0+` 在 iOS 打包中报错，这是因为[使用阿里云产品的 SDK 出现 UTDID 冲突的问题](https://help.aliyun.com/document_detail/39984.html)，在 [@EatherToo](https://github.com/EatherToo) 的帮助下([#44](https://github.com/uiwjs/react-native-alipay/pull/44))，UTDID 被剥离了。可以在 `Podfile` 中加上 `pod 'UTDID'` 解决打包失败的问题。感谢 [@abing](https://github.com/ouabing)\n\n\u003e ⚠️ `v5.x` 在 android 需要 `Gradle 7+` ([#61](https://github.com/uiwjs/react-native-alipay/issues/61#issuecomment-1206243613) [#60](https://github.com/uiwjs/react-native-alipay/pull/60))\n\n## 注意事项\n\n1. Android：支持2.3及以上的系统版本运行。\n2. iOS：iOS 6.0以上(包含iOS 6.0)。\n3. 支持手机系统：iOS（苹果）、Android（安卓）。\n4. 调试请注意 支付宝接入应用必须 `已审核通过` 状态。\n5. 支付宝开放平台-管理中心，签约 `APP支付` 和 `APP支付宝登录` 功能。\n6. 适用于 `react-native \u003e= 0.60+` 低版本未测试。\n7. AlipaySDK 15.7.7 已更新到最新的支付宝 SDK 版本。\n8. `URL Schemes` 要以字母开头不能为纯数字。\n\n## 安装依赖\n\n```bash\nyarn add @uiw/react-native-alipay\n# react-native version \u003e= 0.60+\n$ cd ios \u0026\u0026 pod install\n```\n\n## API\n\n### `Alipay.alipay` 支付\n\n\u003e `Alipay.alipay: (payInfo: string) =\u003e Promise\u003cOrderResult\u003e;`\n\n- ⚠️ 注意支付成功返回结果是一个字符串，[返回内容](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/index.d.ts#L50-L74)  \n- ⚠️ 支付宝需要设置 `Scheme` 和 iOS添加原生代码，才能支持支付和[回弹商家APP](#支付宝返回应用-ios-设置)的功能\n- ⚠️ 支付宝 `管理中心-支付宝开放平台` 需要签约 [`APP支付`](https://opendocs.alipay.com/open/200/105310#%E6%B7%BB%E5%8A%A0%E5%BA%94%E7%94%A8%E5%8A%9F%E8%83%BD)\n\n```javascript\nimport Alipay from '@uiw/react-native-alipay';\n\n// 设置 支付宝 URL Schemes，要表述他是宇宙唯一性，可以使用 `bundle Identifier`\n// scheme = `alipay` + `APPID`，`APPID` 为支付宝分配给开发者的应用ID\nAlipay.setAlipayScheme(scheme);\n// ⚠️ 目前不可用，设置支付宝沙箱环境，仅 Android 支持\n// Alipay.setAlipaySandbox(isSandbox);\n\nasync function aliPay() {\n  // 支付宝端支付\n  // payInfo 是后台拼接好的支付参数\n  // return_url=\n  const payInfo = 'alipay_sdk=alipay-sdk-java-dynamicVersionNo\u0026app_id=2021001172656340\u0026biz_content=%7B%22out_trade_no%22%3A%221111112222222%22%2C%22total_amount%22%3A%220.01%22%2C%22subject%22%3A%221234%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%7D\u0026charset=UTF-8\u0026format=json\u0026method=alipay.trade.app.pay\u0026notify_url=http%3A%2F%2Fane.boshu.ltd%2Fowner%2Fpay%2Fapi%2FownerPay%2Fcallback\u0026sign=oUQmGtkv8mrhJ0YwHl9%2FfxMcoLACWuSFKiMTC4Id8nc%2FZVvDQ6MLQq5hhtEN03Qn1%2BAtzTAaofE8nNixdroxOek2l5YtOAcYcXVYlJIyogN%2B22erN2NpDTWJ7tQTKgYFDJLRiG0DZJaxfADhUUF6UR9kdA8omoXKLDlP17ZPUs5Jr4aKv5HJtH5C53ui7PbmyWYg934L4UDC2F%2F9pPQlRwwDeE1SAaV3HW9Dt83kK52o8%2FlChXdotbFdAvH0d4qYGhpEYU5sepj9xiOMyL9aC4pMXW9INYLLGbvtqtlRchZTAfH5yji6nqqQm9KKMmcVrWdBDLyjFVNpejq1UjbJBw%3D%3D\u0026sign_type=RSA2\u0026timestamp=2020-07-09+12%3A16%3A16\u0026version=1.0';\n  const resule = await Alipay.alipay(payInfo);\n  console.log('alipay:resule--\u003e\u003e\u003e', resule);\n}\n```\n\n订单详情 [`payInfo`](https://opendocs.alipay.com/open/204/105295#%E5%BF%AB%E6%8D%B7%E8%AE%A2%E5%8D%95%E6%94%AF%E4%BB%98%20iOS) 编码前的数据\n\n```bash\nalipay_sdk=alipay-sdk-java-dynamicVersionNo\u0026app_id=xxxxxxxxxxxxx\u0026biz_content={ \"out_trade_no\":\"123123123123123\", \"total_amount\":\"0.01\", \"subject\":\"1234\", \"product_code\":\"QUICK_MSECURITY_PAY\" }\u0026charset=UTF-8\u0026format=json\u0026method=alipay.trade.app.pay\u0026notify_url=http://ane.boshu.ltd/owner/pay/api/ownerPay/callback\u0026return_url=uiwjspay://\u0026sign=re/+2SICQggOUjfxl7MtP/qzir2e+LdH4m+02gDcw0fkByO5MqXW/9bmXw+c4RMqo835OAjMZs7s966ZuDx2PB+hO0tJ/bzdHLLqYlBeCcETkrfwRx+AFZNgzsCn75eRCA7GONH35BpfSeGkQUZ+vNXftqd6hWaa7m/MhQYrjQcV98IVJM+UR67Gj68c+LM586cnk0+rbj8zoos6tCvN8c3xx5UaCobzw4Ogf0PWZ7PZROTU9w2gtoxFfOC5d5slN3laaAXVjAxSf9JCNs8q95fDbzpbmstQOuPgGHkASkd/beH0F8eqTVv8gW1ZTo5v/d/E2wSDGV1DciaEnCroTw==\u0026sign_type=RSA2\u0026timestamp=2020-07-09 09:50:41\u0026version=1.0\n```\n\n订单详情 `payInfo` 编码的数据\n\n```bash\nalipay_sdk=alipay-sdk-java-dynamicVersionNo\u0026app_id=xxxxxxxxxxxxx\u0026biz_content=%7B+%22out_trade_no%22%3A%22123123123123123%22%2C+%22total_amount%22%3A%220.01%22%2C+%22subject%22%3A%221234%22%2C+%22product_code%22%3A%22QUICK_MSECURITY_PAY%22+%7D\u0026charset=UTF-8\u0026format=json\u0026method=alipay.trade.app.pay\u0026notify_url=http%3A%2F%2Fane.boshu.ltd%2Fowner%2Fpay%2Fapi%2FownerPay%2Fcallback\u0026return_url=uiwjspay%3A%2F%2F\u0026sign=re%2F%2B2SICQggOUjfxl7MtP%2Fqzir2e%2BLdH4m%2B02gDcw0fkByO5MqXW%2F9bmXw%2Bc4RMqo835OAjMZs7s966ZuDx2PB%2BhO0tJ%2FbzdHLLqYlBeCcETkrfwRx%2BAFZNgzsCn75eRCA7GONH35BpfSeGkQUZ%2BvNXftqd6hWaa7m%2FMhQYrjQcV98IVJM%2BUR67Gj68c%2BLM586cnk0%2Brbj8zoos6tCvN8c3xx5UaCobzw4Ogf0PWZ7PZROTU9w2gtoxFfOC5d5slN3laaAXVjAxSf9JCNs8q95fDbzpbmstQOuPgGHkASkd%2FbeH0F8eqTVv8gW1ZTo5v%2Fd%2FE2wSDGV1DciaEnCroTw%3D%3D\u0026sign_type=RSA2\u0026timestamp=2020-07-09+09%3A50%3A41\u0026version=1.0\n```\n\n- ⚠️ 后台 SDK 根据所有数据生成 `sign`，建议通过 API 拿到这个数据，拼接数据会报错。  \n- ⚠️ `out_trade_no` 订单 id 和 `sign` 签名 是唯一的，每次不一样，需要后台生成。  \n\n支付返回结果，支付宝[返回结果参数说明](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/index.d.ts#L50-L74)：\n\n```json\n{ \n  \"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\\\"}\",\n  \"resultStatus\": \"9000\",\n  \"memo\": \"\"\n}\n```\n\n### `Alipay.authInfo` 登录授权\n\n\u003e `Alipay.authInfo: (authInfoStr: string) =\u003e Promise\u003cAuthResult\u003e`;\n\n- ⚠️ 注意授权成功返回结果是一个字符串，[返回内容](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/index.d.ts#L89-L113)  \n- ⚠️ 支付宝需要设置 `Scheme` 和 iOS添加原生代码，才能支持验证[回弹商家APP](#支付宝返回应用-ios-设置)的功能\n- ⚠️ 支付宝 `管理中心-支付宝开放平台` 需要签约 [`APP支付宝登录`](https://opendocs.alipay.com/open/200/105310#%E6%B7%BB%E5%8A%A0%E5%BA%94%E7%94%A8%E5%8A%9F%E8%83%BD)\n\n```javascript\nimport Alipay from '@uiw/react-native-alipay';\n\n// 设置 支付宝 URL Schemes，要表述他是宇宙唯一性，可以使用 `bundle Identifier`\n// scheme = `alipay` + `APPID`，`APPID` 为支付宝分配给开发者的应用ID\nAlipay.setAlipayScheme(scheme);\n\nasync function authInfo() {\n  // 支付宝端授权验证\n  // authInfoStr 是后台拼接好的验证参数\n  const authInfoStr = 'app_name=mc\u0026auth_type=AUTHACCOUNT\u0026apiname=com.alipay.account.auth\u0026biz_type=openservice\u0026product_id=APP_FAST_LOGIN\u0026scope=kuaijie\u0026pid=2088421915791034\u0026target_id=15946456110003465\u0026app_id=2021001172656340\u0026sign_type=RSA2\u0026sign=keluG28qbbLwAcSDI4VmCNOGHJoF3xgpVeqXu1nCBCYo%2FlYYGe00fTfV9L4G73Sk7%2B4IwK%2BZV8IL%2F04cVtk6SR74lKAR3rYOoUdQ09ZrZFuQoUkO0vekajhp75IDQIg6PedCyY0SjFTqrHlH%2FImscBwitxrlSc9YbN7uW0gY34K8t7v8NhDoqzKJeoIz43UxF5U1DpUA1ISBVxwO7du1t6rYltsRhReayPS3hnvmwYSKQZUEgBvJ%2BT2XdyCaz%2FdGV907lYagPp1Oxkoaj%2FvW5NjNsRnid7vH944CoFj9XtBK%2FNTk2tBPTHFxYRQTEG1PkgkBohGpAWOFGGOuapH0ag%3D%3D';\n  const resule = await Alipay.authInfo(authInfoStr);\n  // resule =\u003e success=true\u0026auth_code=9c11732de44f4f1790b63978b6fbOX53\u0026result_code=200\u0026alipay_open_id=20881001757376426161095132517425\u0026user_id=2088003646494707\n  console.log('authInfo:resule--\u003e\u003e\u003e', resule);\n}\n```\n\n授权返回结果，支付宝[返回结果参数说明](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/index.d.ts#L89-L113)：\n\n```json\n{\n  \"resultStatus\": \"9000\",\n  \"memo\": \"处理成功\",\n  \"result\": \"success=true\u0026result_code=200\u0026app_id=202100117265\u0026auth_code=8b6e5581b85WX84\u0026scope=kuaijie\u0026alipay_open_id=20881029919664670\u0026user_id=20880025\u0026target_id=15946456110003465\"\n}\n```\n\n### `Alipay.getVersion` 获取 SDK 版本\n\n\u003e `Alipay.getVersion: () =\u003e Promise\u003cstring\u003e;`\n\n```js\nimport Alipay from '@uiw/react-native-alipay';\n\nasync function getVersion() {\n  const version = await Alipay.getVersion();\n  console.log('version:', version);\n}\n```\n\n## 支付宝返回应用 iOS 设置\n\n- ⚠️ Android 端不需要做任何设置。\n- ⚠️ 如果用户从 `支付宝App` 跳转到 `商家APP`，是通过系统功能切换，而不是通过 `支付宝APP` 功能键返回 `商家APP`，回调函数是不起作用的，可通过 [`AppState.addEventListener`](https://github.com/uiwjs/react-native-alipay/blob/5daea87bf0af05d60d0ae9e4c04e1e2d1a6e4273/example/App.js#L8-L24) 监听事件请求后台 API，来优化这一用户体验。\n\n1. 在代码中设置支付宝 [`URL Schemes`](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/example/App.js#L7)，下面实例 [`uiwjspay`](https://github.com/uiwjs/react-native-alipay/commit/f6d21b6b7ec7236b195c56281f971092f3c9bb08) 是定义的 `scheme`，你也可以定义为 `alipay` + `appid`，`appid` 为支付宝分配给开发者的应用ID，用来表述 `scheme` 唯一性。\n\n```js\nAlipay.setAlipayScheme('uiwjspay');\n```\n\n2. 在请求支付的 [`payInfo`](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/example/App.js#L11) 中必须包含 [`return_url=uiwjspay://`](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/example/App.js#L11)，`return_url` 的值为定义的 `scheme` =\u003e `uiwjspay://`，才会返回[支付宝订单支付状态结果](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)\n\n```js\n// payInfo 是后台拼接好的支付参数，这个参数必须包含 `return_url=uiwjspay://`\nAlipay.alipay(payInfo, (res)=\u003econsole.log(res))\n```\n\n3. 用的 `URL Schemes` 列为白名单，在 [`ios/\u003c应用名称\u003e/Info.plist`](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/example/ios/example/Info.plist#L23-L41) 中添加\n\n```xml\n\u003ckey\u003eLSApplicationQueriesSchemes\u003c/key\u003e\n\u003carray\u003e\n  \u003cstring\u003ealipay\u003c/string\u003e\n\u003c/array\u003e\n\u003ckey\u003eCFBundleURLTypes\u003c/key\u003e\n\u003carray\u003e\n  \u003cdict\u003e\n    \u003ckey\u003eCFBundleTypeRole\u003c/key\u003e\n    \u003cstring\u003eEditor\u003c/string\u003e\n    \u003ckey\u003eCFBundleURLName\u003c/key\u003e\n    \u003cstring\u003e\u003c/string\u003e\n    \u003ckey\u003eCFBundleURLSchemes\u003c/key\u003e\n    \u003carray\u003e\n      \u003cstring\u003euiwjspay\u003c/string\u003e\n    \u003c/array\u003e\n  \u003c/dict\u003e\n\u003c/array\u003e\n```\n\n4. 修改 [`ios/\u003c应用名称\u003e/AppDelegate.m`](https://github.com/uiwjs/react-native-alipay/blob/74140a294e850884ed1851b9d2c2d2c00ee75003/example/ios/example/AppDelegate.m#L60-L70) 添加下列代码：\n\n```objective-c\n#import \u003cReact/RCTLinkingManager.h\u003e\n\n- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation\n{\n  return [RCTLinkingManager application:application openURL:url\n                      sourceApplication:sourceApplication annotation:annotation];\n}\n\n- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary\u003cUIApplicationOpenURLOptionsKey, id\u003e *)options\n{\n  return [RCTLinkingManager application:application openURL:url options:options];\n}\n```\n\n**命令测试**\n\n- iOS: `xcrun simctl openurl booted uiwjspay://`\n- Android：`adb shell am start -W -a android.intent.action.VIEW -d \"uiwjspay://test/router\" com.uiwjspay`\n\n## 错误处理\n\n```bash\n[NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\", descriptor: \u003cCTServiceDescriptor 0x283317100, domain=1, instance=1\u003e\n```\n\n在 `Product` -\u003e `Scheme` -\u003e `Edit Scheme` -\u003e `Run` -\u003e `Arguments` -\u003e `Environment Variables` 添加 `OS_ACTIVITY_MODE` `disable`\n\n## 其它\n\n当前工程基于 [@brodybits/create-react-native-module](https://github.com/brodybits/create-react-native-module) 初始化。\n\n```bash\nnpx create-react-native-module --package-identifier com.uiwjs --object-class-name RNAlipay --generate-example Alipay --example-react-native-version 0.63.0 --module-name @uiw/react-native-alipay --github-account uiwjs --author-name \"Kenny Wong\" --author-email \"wowohoo@qq.com\"\n```\n\n## 开发\n\n```bash\ncd example   # 进入实例 example 工程，根目录不需要安装，会引发错误\nyarn install # 安装依赖\n\ncd ios     # 进入 example/ios 目录安装依赖\npod instll # 安装依赖\n```\n\n## 相关连接 \n\n- [支付宝：生成秘钥指南](https://opendocs.alipay.com/open/291/105971)\n- [支付宝：SDK 下载地址，当前使用的是 AlipaySDK\t15.8.03](https://opendocs.alipay.com/open/54/104509)\n- [支付宝：客户端调试工具及使用教程](https://openclub.alipay.com/club/history/read/7695)\n- [支付宝：支付，接入前准备](https://opendocs.alipay.com/open/204/105297/)\n- [支付宝：完整版授权 SDK 调用方法](https://opendocs.alipay.com/open/218/105325)\n- [支付宝：异步通知错误码: IllRet](https://opensupport.alipay.com/support/problem.htm?ant_source=antsupport)\n- [@uiw/react-native-wechat](https://github.com/uiwjs/react-native-wechat) 微信支付。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwjs%2Freact-native-alipay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiwjs%2Freact-native-alipay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiwjs%2Freact-native-alipay/lists"}