{"_id":"@dongxii/react-native-alipay","_rev":"3-aba4fd178e8257c03dfd35be2a60d9f2","name":"@dongxii/react-native-alipay","description":"## Getting started","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@dongxii/react-native-alipay","version":"1.0.0","description":"## Getting started","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react-native","alipay"],"author":{"name":"David Ruisinger","email":"david@dongxii.com"},"license":"MIT","peerDependencies":{"react-native":"^0.41.2"},"gitHead":"d675f34ccf166e849e55cd7b76b75964267a72d6","_id":"@dongxii/react-native-alipay@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.2.1","_npmUser":{"name":"flavordaaave","email":"david@dongxii.com"},"dist":{"integrity":"sha512-Xx7mnS4A729oa4FCJQERTQpLsExINEJ4xYmU5KmAaKZ8wWZZzdvlfflFUcqyzA1OZEcNtCBm/+bX48hv/6gu5g==","shasum":"b245492a0975f376c5e79488715a29d9e2b6308f","tarball":"https://registry.npmjs.org/@dongxii/react-native-alipay/-/react-native-alipay-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHfw7+amnnQCWd56WPpyy6dcj9ticmFSsFewtwtC86hAiEA2193nk0VaqSemaZ8yT0AYkeVliijkUs2q2oXYqxAWbw="}]},"maintainers":[{"name":"flavordaaave","email":"david@dongxii.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-alipay-1.0.0.tgz_1516722009424_0.48362944601103663"}},"1.0.2":{"name":"@dongxii/react-native-alipay","version":"1.0.2","description":"## Getting started","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react-native","alipay"],"author":{"name":"David Ruisinger","email":"david@dongxii.com"},"license":"MIT","peerDependencies":{"react-native":"^0.41.2"},"gitHead":"a41403752e7c33d139d3a1f1a9f295b48a67381f","_id":"@dongxii/react-native-alipay@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.2.1","_npmUser":{"name":"flavordaaave","email":"david@dongxii.com"},"dist":{"integrity":"sha512-SSCmVQne/4Mq3JNiIlDyGUw+jTMdAE3s11yhg+sjU5tKmCWKK0Vky4qbJzY0ZE68NJs88yHrRKjT2QY0dcFDRA==","shasum":"c93d8546354433cf13491f11e683ad86f43eb12d","tarball":"https://registry.npmjs.org/@dongxii/react-native-alipay/-/react-native-alipay-1.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCI+NAb50gyTrconThBDteFJHS0HjCIQDPTGC49DZxMxwIhAKGv7TbI6x206l4nOZQH7Yo7t6gGaSx5p96TiDR5DE9P"}]},"maintainers":[{"name":"flavordaaave","email":"david@dongxii.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-alipay-1.0.2.tgz_1516963791207_0.5204755414742976"}},"1.0.3":{"name":"@dongxii/react-native-alipay","version":"1.0.3","description":"## Getting started","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["react-native","alipay"],"author":{"name":"David Ruisinger","email":"david@dongxii.com"},"license":"MIT","peerDependencies":{"react-native":"*"},"gitHead":"a5b95c9590dfb91cb05f8140822b70915b09f6b2","_id":"@dongxii/react-native-alipay@1.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.2.1","_npmUser":{"name":"flavordaaave","email":"david@dongxii.com"},"dist":{"integrity":"sha512-AkqbWDrJI2t6kzxQfYztgoj/tRkb/6ro6RGu10l2tDTg2DtRCe7QlLhsFy2GMdJeV2O3j6nR1OfHHNzK6Ck6Gw==","shasum":"33456f11f7a5b87a0daca668ca2b8b55567fd0d2","tarball":"https://registry.npmjs.org/@dongxii/react-native-alipay/-/react-native-alipay-1.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/QXv4UJ8TTOTLOxCv7B+DAWxangOFqO8/9AsNvpacFAIgbe6HSLAQk3dvwU+ZLzM6Sxl/Lyz+hqFLDIx8gpFuYoI="}]},"maintainers":[{"name":"flavordaaave","email":"david@dongxii.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-alipay-1.0.3.tgz_1517496072517_0.07223137398250401"}}},"readme":"# react-native-weibo\n\n## Getting started\n\n`$ yarn add @dongxii/react-native-alipay`\n\n### Mostly automatic installation\n\n`$ react-native link @dongxii/react-native-alipay`\n\n### Manual installation\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `@dongxii` ➜ `react-native-alipay` and add `RNAlipay.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNAlipay.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)<\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainApplication.java`\n\n* Add `import com.dongxii.library.alipay.RNAlipayPackage;` to the imports at the top of the file\n* Add `new RNAlipayPackage()` to the list returned by the `getPackages()` method\n\n2. Append the following lines to `android/settings.gradle`:\n   ```\n   include ':@dongxii/react-native-alipay'\n   project(':@dongxii/react-native-alipay').projectDir = new File(rootProject.projectDir, '../node_modules/@dongxii/react-native-alipay/android')\n   ```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n   ```\n   compile project(':@dongxii/react-native-alipay')\n   ```\n\n### Additional steps\n\n#### iOS\n\n1. Install the Alipay iOS SDK using cocoapods\n\n```\npod 'AlipaySDK-Mirror'\n```\n\n2. Due to the limitation of App Transport Security(ATS) on http in iOS9.0, you need to add exception for alipay.com, alipayobjects.com. in info.list.:\n\n```diff\n<dict>\n  <key>NSExceptionDomains</key>\n  <dict>\n\t\t\t<key>localhost</key>\n\t\t\t<dict>\n\t\t\t\t<key>NSExceptionAllowsInsecureHTTPLoads</key>\n\t\t\t\t<true/>\n\t\t\t</dict>\n\t\t\t+ <key>alipay.com</key>\n\t\t\t+ <dict>\n\t\t\t\t\t+ <key>NSIncludesSubdomains</key>\n\t\t\t\t\t+ <true/>\n\t\t\t\t\t+ <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>\n\t\t\t\t\t+ <true/>\n\t\t\t\t\t+ <key>NSTemporaryExceptionMinimumTLSVersion</key>\n\t\t\t\t\t+ <string>TLSv1.0</string>\n\t\t\t\t\t+ <key>NSTemporaryExceptionRequiresForwardSecrecy</key>\n\t\t\t\t\t+ <false/>\n\t\t\t+ </dict>\n\t\t\t+ <key>alipayobjects.com</key>\n\t\t\t+ <dict>\n\t\t\t\t\t+ <key>NSIncludesSubdomains</key>\n\t\t\t\t\t+ <true/>\n\t\t\t\t\t+ <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>\n\t\t\t\t\t+ <true/>\n\t\t\t\t\t+ <key>NSTemporaryExceptionMinimumTLSVersion</key>\n\t\t\t\t\t+ <string>TLSv1.0</string>\n\t\t\t\t\t+ <key>NSTemporaryExceptionRequiresForwardSecrecy</key>\n\t\t\t\t\t+ <false/>\n\t\t\t+ </dict>\n```\n\n3. In AppDelegate.m add the following code:\n\n```diff\n+ #import \"AlipayModule.h\"\n[...]\n+ - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {\n+\t\t[AlipayModule handleCallback:url];\n+   return YES;\n+\t}\n```\n\n4. Ensure that you have set at least one URL scheme for your app (Select your project => Info => URL Types)\n\n#### Android\n\n* NO ADDITIONAL STEPS NEEDED\n\n## Usage\n\n```javascript\nimport RNAlipay from '@dongxii/react-native-alipay'\n\nRNAlipay.pay(signedString).then(response => {\n  console.log(response)\n})\n```\n\n## Run the example\n\n1. `$ cd example && yarn install`\n2. `$ cd ios && pod install`\n3. `$ cd .. && react-native run-ios`\n","maintainers":[{"name":"flavordaaave","email":"david@dongxii.com"}],"time":{"modified":"2022-04-05T05:15:20.244Z","created":"2018-01-23T15:40:12.622Z","1.0.0":"2018-01-23T15:40:12.622Z","1.0.2":"2018-01-26T10:49:52.723Z","1.0.3":"2018-02-01T14:41:13.975Z"},"keywords":["react-native","alipay"],"author":{"name":"David Ruisinger","email":"david@dongxii.com"},"license":"MIT","readmeFilename":"README.md"}