{"id":44472268,"url":"https://github.com/datatrans/react-datatrans-light-box","last_synced_at":"2026-02-12T21:33:39.923Z","repository":{"id":20334487,"uuid":"87086770","full_name":"datatrans/react-datatrans-light-box","owner":"datatrans","description":"Lightweight React wrapper for Datatrans Payment Lightbox","archived":false,"fork":false,"pushed_at":"2025-11-19T06:27:26.000Z","size":1173,"stargazers_count":11,"open_issues_count":1,"forks_count":7,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-11-19T08:21:51.724Z","etag":null,"topics":["datatrans","javascript","react"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-datatrans-light-box","language":"TypeScript","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/datatrans.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-04-03T14:59:10.000Z","updated_at":"2025-11-19T06:27:28.000Z","dependencies_parsed_at":"2025-08-18T02:25:51.278Z","dependency_job_id":"618bc352-2096-450a-b250-5315a17eb059","html_url":"https://github.com/datatrans/react-datatrans-light-box","commit_stats":{"total_commits":57,"total_committers":12,"mean_commits":4.75,"dds":0.6491228070175439,"last_synced_commit":"18323f05c08d4cee3b9f98f47f669e0516588392"},"previous_names":["datatrans/react-datatrans-lightbox"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/datatrans/react-datatrans-light-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Freact-datatrans-light-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Freact-datatrans-light-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Freact-datatrans-light-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Freact-datatrans-light-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datatrans","download_url":"https://codeload.github.com/datatrans/react-datatrans-light-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datatrans%2Freact-datatrans-light-box/sbom","scorecard":{"id":324876,"data":{"date":"2025-08-11","repo":{"name":"github.com/datatrans/react-datatrans-light-box","commit":"73200797d6602b77c745a9a60fd49f3b898fc34b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:3","Info: no jobLevel write permissions found"],"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":"Code-Review","score":6,"reason":"Found 14/21 approved changesets -- score normalized to 6","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/datatrans/react-datatrans-light-box/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/datatrans/react-datatrans-light-box/ci.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:23","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"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":"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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":2,"reason":"SAST tool is not run on all commits -- score normalized to 2","details":["Warn: 6 commits out of 25 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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-3mv9-4h5g-vhg3","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3"],"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-18T02:11:56.677Z","repository_id":20334487,"created_at":"2025-08-18T02:11:56.677Z","updated_at":"2025-08-18T02:11:56.677Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29381790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T20:34:40.886Z","status":"ssl_error","status_checked_at":"2026-02-12T20:23:00.490Z","response_time":55,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["datatrans","javascript","react"],"created_at":"2026-02-12T21:33:39.856Z","updated_at":"2026-02-12T21:33:39.913Z","avatar_url":"https://github.com/datatrans.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version][npm-version-image]][npm-url] ![CI](https://github.com/datatrans/react-datatrans-light-box/actions/workflows/ci.yml/badge.svg?branch=master)\n\n# Datatrans React Light Box\n\nOfficial Datatrans light box library for showing our payment page in React applications.\nReact is defined as a peer dependency and expected to be made available by your project. Other than that this library is completely dependency-free.\n\n## Compatibility\n\nBeginning with v3.0.0, this component is using the [Datatrans Payment JSON API](https://api-reference.datatrans.ch/#tag/v1transactions).\n\nIf you're still using the legacy XML API, please refer to [react-datatrans-light-box v2.0.2](https://github.com/datatrans/react-datatrans-light-box/tree/2.0.2).\n\n## How to install\n\n```sh\n# Use with current JSON API\nnpm install react-datatrans-light-box\n\n# Use with legacy XML API (supported by react-datatrans-light-box \u003c= 2.x)\nnpm install react-datatrans-light-box@2\n```\n\n## Example usage\n\n```js\nimport React, { useState } from 'react'\nimport Lightbox from 'react-datatrans-light-box'\n\nexport default (props) =\u003e {\n  const { transactionId } = props\n\n  const [lightbox, showLightbox] = useState(false)\n\n  const onLoaded = () =\u003e console.log('Loaded')\n  const onOpened = () =\u003e console.log('Opened')\n  const onCancelled = () =\u003e showLightbox(false)\n  const onError = (data) =\u003e {\n    console.log('Error:', data)\n    showLightbox(false)\n  }\n\n  return \u003cdiv\u003e\n    \u003ch1\u003eDatatrans Lightbox Demo\u003c/h1\u003e\n    \u003cdiv\u003e\n      {lightbox\n        ? \u003cLightbox\n            transactionId={transactionId}\n            production={true}\n            onLoaded={this.onLoaded}\n            onOpened={this.onOpened}\n            onCancelled={this.onCancelled}\n            onError={this.onError}\n          /\u003e\n        : \u003cbutton onClick={() =\u003e showLightbox(true)}\u003eStart Lightbox\u003c/button\u003e\n      }\n    \u003c/div\u003e\n  \u003c/div\u003e\n}\n```\n\n## Properties\n\nThe Lightbox component takes the following properties as input.\n\n| Property | Mandatory | Type | Description |\n| -------- | --------- | ---- | ----------- |\n| `transactionId` | **Yes** | String | Transaction ID returned by [Initializing Transactions](https://docs.datatrans.ch/docs/redirect-lightbox#section-initializing-transactions). |\n| `production` | No | Boolean | Indicates whether requests hit Datatrans' production or sandbox environment. Defaults to `false` (sandbox). |\n| `onLoaded` | No | Function | Called when payment page is loaded. |\n| `onOpened` | No | Function | Called when payment page is opened. |\n| `onCancelled` | No | Function | Called when user has cancelled payment. |\n| `onError` | No | Function | Called when there was an error loading the payment page. |\n\n[npm-url]: https://npmjs.com/package/react-datatrans-light-box\n[npm-version-image]: https://img.shields.io/npm/v/react-datatrans-light-box.svg?style=flat-square\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatatrans%2Freact-datatrans-light-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatatrans%2Freact-datatrans-light-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatatrans%2Freact-datatrans-light-box/lists"}