{"id":18750722,"url":"https://github.com/cafebazaar/react-native-poolakey","last_synced_at":"2025-10-18T17:35:26.734Z","repository":{"id":38315575,"uuid":"361396415","full_name":"cafebazaar/react-native-poolakey","owner":"cafebazaar","description":"ReactNative In-App Billing SDK for Cafe Bazaar App Store","archived":false,"fork":false,"pushed_at":"2024-03-21T08:15:05.000Z","size":2405,"stargazers_count":17,"open_issues_count":6,"forks_count":7,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-10-03T14:23:09.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cafebazaar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2021-04-25T10:23:05.000Z","updated_at":"2025-04-04T13:57:01.000Z","dependencies_parsed_at":"2025-04-13T00:06:28.871Z","dependency_job_id":"28a78366-0632-4495-a5d8-6b92fc65d151","html_url":"https://github.com/cafebazaar/react-native-poolakey","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cafebazaar/react-native-poolakey","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Freact-native-poolakey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Freact-native-poolakey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Freact-native-poolakey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Freact-native-poolakey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cafebazaar","download_url":"https://codeload.github.com/cafebazaar/react-native-poolakey/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cafebazaar%2Freact-native-poolakey/sbom","scorecard":{"id":261685,"data":{"date":"2025-08-11","repo":{"name":"github.com/cafebazaar/react-native-poolakey","commit":"eff4a4ae0370b4e82b2bff75210c208490bde638"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"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":"Code-Review","score":0,"reason":"Found 1/30 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":"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":"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":"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":9,"reason":"binaries present in source code","details":["Warn: binary detected: example/android/gradle/wrapper/gradle-wrapper.jar:1"],"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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 'main'"],"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 1 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"}},{"name":"Vulnerabilities","score":0,"reason":"21 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-cchq-frgv-rjh5","Warn: Project is vulnerable to: GHSA-g644-9gfx-q4q4","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T10:57:48.979Z","repository_id":38315575,"created_at":"2025-08-17T10:57:48.979Z","updated_at":"2025-08-17T10:57:48.979Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279578821,"owners_count":26194578,"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","status":"online","status_checked_at":"2025-10-18T02:00:06.492Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T17:12:54.966Z","updated_at":"2025-10-18T17:35:26.715Z","avatar_url":"https://github.com/cafebazaar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @cafebazaar/react-native-poolakey\n\nReactNative implementation of CafeBazaar's in-app payment SDK.\n\n## Installation\n\n```sh\nyarn add @cafebazaar/react-native-poolakey\n```\nor\n```sh\nnpm install @cafebazaar/react-native-poolakey\n```\n\n## Usage\n\n### Functional Components\n\n```js\nimport { useBazaar } from '@cafebazaar/react-native-poolakey';\n\n// ...\n\nfunction MyComponent() {\n  const bazaar = useBazaar(RSA_KEY);\n  // ...\n  const someHandler = async () =\u003e {\n    const purchaseResult = await bazaar.purchaseProduct(productId);\n    console.log(purchaseResult.purchaseToken);\n  };\n  // ...\n}\n```\n\n### Class Components\n\n```js\nimport bazaar from '@cafebazaar/react-native-poolakey';\n\n// ...\n\nclass MyApp extends React.Component {\n  componentDidMount() {\n    bazaar\n      .connect(YOUR_RSA_KEY)\n      .catch(handleError); // bazaar is not installed or what?!\n  }\n\n  componentWillUnmount() {\n    bazaar.disconnect();\n  }\n\n  async someButtonHandler() {\n    const purchaseResult = await bazaar.purchaseProduct(productId);\n    console.log(purchaseResult.purchaseToken);\n  }\n}\n```\n\n## Complete Example\nPlease see [example](https://github.com/cafebazaar/react-native-poolakey/tree/main/example) folder for a complete example react-native implementation.\n\n## API Documentation\n\n### connect / disconnect\nTLDR: For each `connect` call, you need to call `disconnect` too.\n\nTo use bazaar apis, user needs to have Bazaar app installed on his phone.\nIn all times, there's a single connection from your app to bazaar, each time\nyou call `connect` we count it internally and you have to call `disconnect`\nthe same number of times to be disconnected completely.\n\nOnce you are connected, you can call other apis, but you don't need to wait\nfor `connect` promise to be resolved, other apis internally wait for connection\nto be established.\n\nInside functional components, you can use `useBazaar` which automatically calls\n`connect`/`disconnect` on mount/unmount hooks.\n\n### purchaseProduct(productId: string): Promise\u0026lt;PurchaseResult\u0026gt;\nPurchase a product, bazaar starts payment flow automatically.\n\n### consumePurchase(purchaseToken: string): Promise\u0026lt;void\u0026gt;\nIf your product is consumable, you can call `consumePurchase` whenever you see fit. To\nconsume, you need to provide purchaseToken from a previous `consumePurchase` call result.\n\n### subscribeProduct(productId: string): Promise\u0026lt;PurchaseResult\u0026gt;\nSubscribe to a product, bazaar starts payment flow automatically.\n\n### getPurchasedProducts(): Promise\u0026lt;PurchaseResult[]\u0026gt;\nGet a list of products purchased by current user (logged in inside his bazaar app).\n\n### getSubscribedProducts(): Promise\u0026lt;PurchaseResult[]\u0026gt;\nGet a list of subscriptions purchased by current user (logged in inside his bazaar app).\n\n### queryPurchaseProduct(productId: string): Promise\u0026lt;PurchaseResult\u0026gt;\nGet a specific purchase data by productId\n\n### querySubscribeProduct(productId: string): Promise\u0026lt;PurchaseResult\u0026gt;\nGet a specific subscription data by productId\n\n### getInAppSkuDetails(productIds: string[]): Promise\u003cSkuDetails[]\u003e\nGet array of in-app sku details for all provided product ids\n\n### getSubscriptionSkuDetails(productIds: string[]): Promise\u003cSkuDetails[]\u003e\nGet array of subscription sku details for all provided product ids\n\n### PurchaseResult\n```typescript\ntype PurchaseResult = {\n  orderId: string;\n  packageName: string;\n  productId: string;\n  purchaseTime: Date;\n  purchaseState: number;\n  developerPayload: string;\n  purchaseToken: string;\n}\n```\n\n### SkuDetails\n```typescript\ntype SkuDetails = {\n  sku: string;\n  type: string;\n  price: string;\n  title: Date;\n  description: number;\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcafebazaar%2Freact-native-poolakey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcafebazaar%2Freact-native-poolakey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcafebazaar%2Freact-native-poolakey/lists"}