{"id":19303717,"url":"https://github.com/nuremx/conekta-react-native","last_synced_at":"2025-04-22T11:32:13.012Z","repository":{"id":57100970,"uuid":"145253408","full_name":"nuremx/conekta-react-native","owner":"nuremx","description":"React Native Conekta wrapper for iOS (Android missing)","archived":false,"fork":false,"pushed_at":"2019-01-27T16:34:32.000Z","size":363,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T03:03:27.096Z","etag":null,"topics":["conekta","ios","payments","react-native","swift"],"latest_commit_sha":null,"homepage":"https://conekta.com","language":"Swift","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/nuremx.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-08-18T21:18:41.000Z","updated_at":"2023-12-06T12:47:48.000Z","dependencies_parsed_at":"2022-08-20T21:40:20.712Z","dependency_job_id":null,"html_url":"https://github.com/nuremx/conekta-react-native","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuremx%2Fconekta-react-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuremx%2Fconekta-react-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuremx%2Fconekta-react-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuremx%2Fconekta-react-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuremx","download_url":"https://codeload.github.com/nuremx/conekta-react-native/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250232214,"owners_count":21396595,"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":["conekta","ios","payments","react-native","swift"],"created_at":"2024-11-09T23:27:15.221Z","updated_at":"2025-04-22T11:32:09.606Z","avatar_url":"https://github.com/nuremx.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/nuremx/conekta-react-native/master/assets/banner.jpg\" align=\"center\" alt=\"Conekta React Native banner\" /\u003e\n\n# Conekta React Native [![npm version](https://badge.fury.io/js/conekta-react-native.svg)](https://badge.fury.io/js/conekta-react-native) [![Swift Version](https://img.shields.io/badge/Swift-4.0.x-orange.svg)](https://swift.org)\n\n\u003e Conekta online payment processing platform on React Native\n\n\u003e **Currently iOS only**\n\n## Installation\n\n```bash\nyarn add conekta-react-native # or npm i\n```\n\nLink the module\n\n```bash\nreact-native link conekta-react-native\n```\n\n#### iOS Notes\n\nCheck that the Libraries group in Xcode have `RNConekta` and the project settings include `libRNConekta` in Linked Frameworks and Libraries. See [Manual Linking](https://facebook.github.io/react-native/docs/linking-libraries-ios).\n\n**Important**. Since this module uses Swift, and RN projects are based in Obj-C, add an empty Swift file inside your project (no bridging header required), this will remove linked Xcode error. See related [Stack Overflow Post](https://stackoverflow.com/questions/50096025/it-gives-errors-when-using-swift-static-library-with-objective-c-project)\n\n## Usage\n\nWith async/await:\n\n```javascript\nconst conekta = new Conekta('key_KJysdbf6PotS2ut2')\n\nconst card = conekta.createCard({\n  number: '4242424242424242',\n  name: 'Julian Ceballos',\n  cvc: '123',\n  expMonth: '10',\n  expYear: '2018',\n})\n\ntry {\n  const data = await card.createToken()\n  console.log('DATA', data)\n} catch (error) {\n  console.log('ERROR', error)\n}\n```\n\nOr if you prefer promises:\n\n```javascript\nconst conekta = new Conekta(\"key_KJysdbf6PotS2ut2\");\n\nconst card = conekta.createCard({\n  number: \"4242424242424242\",\n  name: \"Julian Ceballos\",\n  cvc: \"123\",\n  expMonth: \"10\",\n  expYear: \"2018\"\n});\n\ncard\n  .createToken()\n  .then(data =\u003e {\n    console.log(\"DATA\", data);\n  })\n  .catch(error =\u003e {\n    console.log(\"ERROR\", error);\n  });\n```\n\n## TODO\n\n- [ ] Android version\n- [ ] Optimization\n- [ ] Testing\n\nPlease feel free to post a PR\n\n## Licence\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuremx%2Fconekta-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuremx%2Fconekta-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuremx%2Fconekta-react-native/lists"}