{"id":14974356,"url":"https://github.com/ferndopolis/react-native-braintree-card","last_synced_at":"2025-10-27T06:32:15.257Z","repository":{"id":57142714,"uuid":"52401065","full_name":"ferndopolis/react-native-braintree-card","owner":"ferndopolis","description":"A react native interface for handling Braintree's card nonce.","archived":false,"fork":false,"pushed_at":"2017-02-08T04:25:35.000Z","size":118,"stargazers_count":16,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-28T18:43:08.883Z","etag":null,"topics":["braintree","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ferndopolis.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":"2016-02-24T00:06:44.000Z","updated_at":"2021-04-05T18:10:36.000Z","dependencies_parsed_at":"2022-09-05T11:50:23.422Z","dependency_job_id":null,"html_url":"https://github.com/ferndopolis/react-native-braintree-card","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferndopolis%2Freact-native-braintree-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferndopolis%2Freact-native-braintree-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferndopolis%2Freact-native-braintree-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ferndopolis%2Freact-native-braintree-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ferndopolis","download_url":"https://codeload.github.com/ferndopolis/react-native-braintree-card/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219861742,"owners_count":16555987,"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":["braintree","react-native"],"created_at":"2024-09-24T13:50:26.890Z","updated_at":"2025-10-27T06:32:14.764Z","avatar_url":"https://github.com/ferndopolis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-braintree-card\n\nA react native interface for handling Braintree's card nonce creation,\nwhen using a custom credit card UI.\n\nFor those using the Braintree's v.zero SDK, check out [react-native-braintree](https://github.com/alawong/react-native-braintree).\n\nAPI supports both the initWithNumber and initWithParameters methods from Class [BTCard](http://cocoadocs.org/docsets/Braintree/4.7.4/Classes/BTCard.html).\n\n## Usage\n\n### Setup\n```js\n// outside of your componet\nimport BraintreeCardClient from 'react-native-braintree-card';\n\n// in your componentDidMount() block\nBraintreeCardClient.initWithAuthorization(\u003ctoken\u003e);\n\n// handle form submit event after user inputs card detail\nBraintreeCardClient.getCardNonce( card, expMonth, expYear, cvv, (error, nonce) =\u003e {\n   // if error handle accordingly or pass nonce to your server\n});\n\n// Or with object, more info on object schema here http://cocoadocs.org/docsets/Braintree/4.7.4/Classes/BTCard.html\nBraintreeCardClient.getCardNonce(\n  {\n    number,\n    expirationMonth,\n    expirationYear,\n    cvv,\n    cardholderName,\n    billing_address: {\n      street_address, postal_code, locality, region,\n      country_code_alpha2,\n      country_name,\n    },\n    options: {\n      validate: false,\n    }\n  },\n   (error, nonce) =\u003e {\n     // if error handle accordingly or pass nonce to your server\n});\n```\n\n## Installation\n1. Run `npm install react-native-braintree-card --save` to add the package\n2. Inside the ``ios/`` directory, create a Podfile:\n\n  ```ruby\n  # Podfile for cocoapods 1.0\n  source 'https://github.com/CocoaPods/Specs.git'\n  target 'yourAppTarget' do\n    pod 'React', :path =\u003e '../node_modules/react-native'\n    pod 'react-native-braintree-card', :path =\u003e '../node_modules/react-native-braintree-card'\n  end\n  ```\n\n  Or if you use an older CocoaPods version:\n  ```ruby\n  source 'https://github.com/CocoaPods/Specs.git'\n  pod 'React', :path =\u003e '../node_modules/react-native'\n  pod 'react-native-braintree-card', :path =\u003e '../node_modules/react-native-braintree-card'\n  ```\n\n3. Run `pod install`.  This installs the Braintree iOS SDK and a new workspace is created.\n\n4. Open your workspace.\n\n5. Under your app target -\u003e build settings, look for `Other Linker Flags` and add `$(inherited)`\n\n6. Build and run project!  If it fails the first time, clean and rebuild.\n\n## Requirements\n\nTested with:\n* node 6.9.4\n* npm 3.10.10\n* react-native 0.42.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferndopolis%2Freact-native-braintree-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fferndopolis%2Freact-native-braintree-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fferndopolis%2Freact-native-braintree-card/lists"}