{"id":29023079,"url":"https://github.com/bamlab/react-native-stripe","last_synced_at":"2025-06-26T03:05:16.413Z","repository":{"id":46932434,"uuid":"119281547","full_name":"bamlab/react-native-stripe","owner":"bamlab","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-07T20:46:40.000Z","size":698,"stargazers_count":32,"open_issues_count":23,"forks_count":12,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-15T00:00:08.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bamlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-28T17:33:57.000Z","updated_at":"2022-09-15T12:08:26.000Z","dependencies_parsed_at":"2023-01-23T20:15:48.381Z","dependency_job_id":null,"html_url":"https://github.com/bamlab/react-native-stripe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bamlab/react-native-stripe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-stripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-stripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-stripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-stripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bamlab","download_url":"https://codeload.github.com/bamlab/react-native-stripe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bamlab%2Freact-native-stripe/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261990350,"owners_count":23241188,"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":[],"created_at":"2025-06-26T03:05:15.900Z","updated_at":"2025-06-26T03:05:16.402Z","avatar_url":"https://github.com/bamlab.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-stripe\n\nBasic Stripe integration with React Native.\n\nThe project just started, feel free to contribute.\n\n## Getting started\n\n`$ npm install react-native-stripe --save`\n\n### Installation\n\n#### iOS\n\n1. Settup cocoapod if not done yet.\n2. Add in your podfile, the following lines :\n```\n  pod 'react-native-stripe', path: '../../..'\n  pod 'yoga', path: '../node_modules/react-native/ReactCommon/yoga/yoga.podspec'\n  pod 'React', :path =\u003e '../node_modules/react-native', :subspecs =\u003e [\n    'Core',\n    'RCTActionSheet',\n    'RCTAnimation',\n    'RCTGeolocation',\n    'RCTImage',\n    'RCTLinkingIOS',\n    'RCTNetwork',\n    'RCTSettings',\n    'RCTText',\n    'RCTVibration',\n    'RCTWebSocket',\n    'DevSupport'\n  ]\n```\n3. Run `pod install` in your `ios/` folder.\n\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import com.reactlibrary.RNStripePackage;` to the imports at the top of the file\n  - Add `new RNStripePackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-stripe'\n  \tproject(':react-native-stripe').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-stripe/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-stripe')\n  \t```\n\n## Usage\n```javascript\nimport Stripe from 'react-native-stripe';\n\nStripe.init({\n  publishableKey: 'pk_...',\n});\n\nStripe.createTokenWithCard({\n    number: '4111 1111 1111 1111',\n    cvc: '123',\n    expMonth: 11,\n    expYear: 22,\n}).then(res =\u003e {\n  console.log(res.token);\n});\n```\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamlab%2Freact-native-stripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbamlab%2Freact-native-stripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbamlab%2Freact-native-stripe/lists"}