{"id":37613893,"url":"https://github.com/matix-io/react-native-square-pos","last_synced_at":"2026-01-16T10:28:00.323Z","repository":{"id":34462701,"uuid":"179159783","full_name":"matix-io/react-native-square-pos","owner":"matix-io","description":"React Native module for Square POS","archived":false,"fork":false,"pushed_at":"2023-11-01T19:32:22.000Z","size":26,"stargazers_count":19,"open_issues_count":7,"forks_count":20,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-15T13:46:25.885Z","etag":null,"topics":["react-native"],"latest_commit_sha":null,"homepage":null,"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/matix-io.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-02T21:14:53.000Z","updated_at":"2024-03-07T21:43:35.000Z","dependencies_parsed_at":"2024-11-15T13:44:44.892Z","dependency_job_id":"ca70cfb2-865c-4ff3-8659-d38fd620f56f","html_url":"https://github.com/matix-io/react-native-square-pos","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/matix-io/react-native-square-pos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matix-io%2Freact-native-square-pos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matix-io%2Freact-native-square-pos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matix-io%2Freact-native-square-pos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matix-io%2Freact-native-square-pos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matix-io","download_url":"https://codeload.github.com/matix-io/react-native-square-pos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matix-io%2Freact-native-square-pos/sbom","scorecard":{"id":624901,"data":{"date":"2025-08-11","repo":{"name":"github.com/matix-io/react-native-square-pos","commit":"fa053956f89490a96fa61984243e86a4a83b3fcb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 2/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T06:07:47.201Z","repository_id":34462701,"created_at":"2025-08-21T06:07:47.201Z","updated_at":"2025-08-21T06:07:47.201Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["react-native"],"created_at":"2026-01-16T10:28:00.241Z","updated_at":"2026-01-16T10:28:00.306Z","avatar_url":"https://github.com/matix-io.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-square-pos\n\n## Getting started\n\n### Installation\n\n1. `npm install react-native-square-pos --save` or `yarn add react-native-square-pos`\n2. `react-native link`\n\n### iOS Installation\n\n1. Add `RNSquarePos` to your Podfile: `pod 'RNSquarePos', :path =\u003e '../node_modules/react-native-square-pos'`, and run `pod install`\n2. In the [\"Getting Started\" section from Square Docs](https://github.com/square/SquarePointOfSaleSDK-iOS/tree/fcb44143c9b199f62f9feb61e98a51516e0c28a3#update-your-infoplist), complete the following sections: \"Update your Info.plist\", and \"Register your app with Square\".  **Take note of the _URL Scheme_ and the _Application ID_**.\n3. Make sure you've modified [`AppDelegate.m` to include `RCTLinking`](https://facebook.github.io/react-native/docs/linking).\n\n### Android Installation\n\n1. Follow [\"Step 2: Register your application\" in Square Android docs](https://docs.connect.squareup.com/payments/pos/setup-android#step-2-register-your-application). \n2. **Take note of your _Application ID_**  (this is found in the Square Developer dashboard, under \"Credentials\")\n\n\n## Usage\n\nImport the package\n\n```javascript\nimport SquarePOS from 'react-native-square-pos'\n```\n\nConfigure the package\n\n```javascript\nSquarePOS.configure({\n  applicationId: 'Your Square application ID',\n  callbackUrl: 'yourUrlScheme://some-unique-path'\n})\n```\n\nMake a transaction\n\n```javascript\nconst amountInCents = 100\nconst currency = 'CAD' // 🇨🇦\nconst options = {\n  tenderTypes: [\n    'CARD',\n    'CARD_ON_FILE',\n    'CASH',\n    'OTHER'\n  ],\n  note: 'This note shows up on the transaction',\n  locationId: 'Optionally pass location Id', // only on iOS at the moment\n}\nSquarePOS.transaction(amountInCents, currency, options)\n  .then((result) =\u003e {\n      // the transaction was successful\n      const { transactionId, clientTransactionId } = result\n  })\n  .catch((err) =\u003e {\n      // the transaction failed. \n      // see error codes below.\n      const { errorCode } = err\n  })\n```\n\n### Errors\n\nThere are a number of different error codes, which may differ on Android / iOS.  Eventually, an exhaustive list should be compiled here.  For now, here are the important ones:\n\n- `CANNOT_OPEN_SQUARE`: The user doesn't have the Square POS app installed\n- `NOT_LOGGED_IN`: The user isn't logged into a Square account\n- `USER_NOT_ACTIVE`: Not totally sure what this does\n- `PAYMENT_CANCELLED`: The payment got cancelled from within the app\n- `NO_NETWORK_CONNECTION`: No network connection on the phone\n- `AMOUNT_TOO_SMALL`: `amountInCents` was too small (iOS only)\n- `AMOUNT_TOO_LARGE`: `amountInCents` was too large (iOS only)\n- `INVALID_REQUEST`: Square Point-of-Sale couldn't process the request (because of malformed data or other) (Android only, check `err.squareResponse` for more information)\n\nAdditionally, because this is a young project:\n\n- `UNKNOWN_ANDROID_ERROR`, if the response from Square Android SDK if the response wasn't handled by this package.  On Android, you'll have access to `err.squareResponse` to see the entire response data sent back from Square Point-of-Sale.\n- `UNKNOWN_IOS_ERROR`, if the response from Square iOS SDK wasn't handled by this package.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatix-io%2Freact-native-square-pos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatix-io%2Freact-native-square-pos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatix-io%2Freact-native-square-pos/lists"}