{"id":26670634,"url":"https://github.com/corbmx/react-native-openpay","last_synced_at":"2025-04-12T03:02:44.158Z","repository":{"id":88285804,"uuid":"67621006","full_name":"CORBmx/react-native-openpay","owner":"CORBmx","description":"An Android and iOS Openpay sdk wrapper for React Native.","archived":false,"fork":false,"pushed_at":"2020-05-28T14:54:53.000Z","size":772,"stargazers_count":3,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T02:02:37.959Z","etag":null,"topics":["openpay","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","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/CORBmx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"CesarLanderos","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://paypal.me/cfld"}},"created_at":"2016-09-07T15:43:42.000Z","updated_at":"2022-03-31T21:00:28.000Z","dependencies_parsed_at":"2023-07-03T02:23:24.216Z","dependency_job_id":null,"html_url":"https://github.com/CORBmx/react-native-openpay","commit_stats":{"total_commits":31,"total_committers":6,"mean_commits":5.166666666666667,"dds":0.7096774193548387,"last_synced_commit":"27b29750a8378b1621cd8d8e25326c38fda760a9"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CORBmx%2Freact-native-openpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CORBmx%2Freact-native-openpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CORBmx%2Freact-native-openpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CORBmx%2Freact-native-openpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CORBmx","download_url":"https://codeload.github.com/CORBmx/react-native-openpay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248510000,"owners_count":21116131,"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":["openpay","react-native"],"created_at":"2025-03-25T22:38:29.403Z","updated_at":"2025-04-12T03:02:44.109Z","avatar_url":"https://github.com/CORBmx.png","language":"Java","funding_links":["https://github.com/sponsors/CesarLanderos","https://paypal.me/cfld"],"categories":[],"sub_categories":[],"readme":"# react-native-openpay\n\nAn Android and iOS Openpay sdk wrapper for React Native.\n\nRight now it only suports creating card tokens and getting the device session id as i have no need to  \ncreate a card, any PR is welcome to extend the funtionality of this library or maybe fix an issue 🎉.\n\n## Installing\n\n```\nyarn add react-native-openpay\n```\n\n- if your version of `react-native` is below v0.60, also do the following:\n\nthen link the library to Android/iOS native projects:\n\n```\nreact-native link react-native-openpay\n```\n\n## Usage\n\nbefore doing anything, setup your instance with your credentials:\n\n```javascript\nimport openpay from \"react-native-openpay\";\n\nopenpay.setup(\"MERCHANT_ID\", \"API_KEY\");\n\n// you can pas an extra third parameter to tell the sdk that the app is in production\nopenpay.setup(\"MERCHANT_ID\", \"API_KEY\", true);\n```\n\ncreate a card token, this function takes an object with the card info and returns a promise, the result is the token  \nid string (it does not yet support sending an address):\n\n```javascript\nopenpay\n  .createCardToken({\n    holder_name: \"John Doe\",\n    card_number: \"4111111111111111\",\n    expiration_month: \"02\",\n    expiration_year: \"20\",\n    cvv2: \"110\",\n  })\n  .then((token) =\u003e console.log(token));\n```\n\nget the device session id, returns a promise, the result is the session id string:\n\n```javascript\nopenpay.getDeviceSessionId().then((sessionId) =\u003e console.log(sessionId));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbmx%2Freact-native-openpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorbmx%2Freact-native-openpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorbmx%2Freact-native-openpay/lists"}