{"id":21445211,"url":"https://github.com/revenuemonster/rm-plugin","last_synced_at":"2026-04-29T21:05:34.482Z","repository":{"id":113212077,"uuid":"249477913","full_name":"RevenueMonster/rm-plugin","owner":"RevenueMonster","description":"Revenue Monster Plugins for Merchant Portal, Terminal and Merchant App","archived":false,"fork":false,"pushed_at":"2023-04-10T07:13:11.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T15:31:08.128Z","etag":null,"topics":["add-on","android","ios","plugin","react","react-native","revenuemonster"],"latest_commit_sha":null,"homepage":"https://revenuemonster.my","language":"JavaScript","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/RevenueMonster.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":"2020-03-23T16:02:14.000Z","updated_at":"2023-04-07T01:28:32.000Z","dependencies_parsed_at":"2025-01-23T11:15:50.898Z","dependency_job_id":"bf49141f-5cfd-4b5a-bf05-c868e4daeac6","html_url":"https://github.com/RevenueMonster/rm-plugin","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/RevenueMonster/rm-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevenueMonster%2Frm-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevenueMonster%2Frm-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevenueMonster%2Frm-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevenueMonster%2Frm-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RevenueMonster","download_url":"https://codeload.github.com/RevenueMonster/rm-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RevenueMonster%2Frm-plugin/sbom","scorecard":{"id":120071,"data":{"date":"2025-08-11","repo":{"name":"github.com/RevenueMonster/rm-plugin","commit":"02cb72c34459d0ccc8be4dc5997ff644ce84cd42"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.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":"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":"Code-Review","score":1,"reason":"Found 4/24 approved changesets -- score normalized to 1","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":"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":"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/npmpublish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/RevenueMonster/rm-plugin/npmpublish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/RevenueMonster/rm-plugin/npmpublish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/RevenueMonster/rm-plugin/npmpublish.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/npmpublish.yml:1","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":"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":"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":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 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-16T02:16:38.100Z","repository_id":113212077,"created_at":"2025-08-16T02:16:38.101Z","updated_at":"2025-08-16T02:16:38.101Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280979467,"owners_count":26423964,"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-25T02:00:06.499Z","response_time":81,"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":["add-on","android","ios","plugin","react","react-native","revenuemonster"],"created_at":"2024-11-23T02:24:54.900Z","updated_at":"2025-10-25T15:51:22.758Z","avatar_url":"https://github.com/RevenueMonster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RM Plugin SDK \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/rm-plugin\"\u003e\n\n##### Support for Merchant App, Terminal and Merchant Portal\n\n## Release\n\nWhen someone changes the version in package.json to 1.2.3 and pushes a commit with the message Release 1.2.3, the github action will create a new tag v1.2.3 and publish the package to the npm registry.\n\n## Install\n\n```\n$ npm install rm-plugin\n```\n\n## Usage\n\n```js\nimport rm from \"rm-plugin\";\n\n// get signed request\nrm.getSignedRequest({\n  success: function ({ signedRequest, platform }) {\n    console.log(\"signedRequest: \", signedRequest, \" platform: \", platform);\n  },\n});\n\n// get platform\nconst platform = rm.getPlatform();\n\n// show toast message\nrm.showToast({\n  type: \"success\", // success, error (only for web portal)\n  title: \"hello\",\n});\n\n// scan qrcode (only for terminal and merchant-app)\nrm.scanCode({\n  success: function (resp) {\n    console.log(\"success: \", resp.code);\n  },\n  fail: function () {\n    console.log(\"failed\");\n  },\n  complete: function () {\n    console.log(\"complete\");\n  },\n});\n\n// show loading\nrm.showLoading();\n\n// hide loading\nrm.hideLoading();\n\n// show alert (only for terminal and merchant-app)\nrm.showAlert({\n  type: \"success\", // success, error\n  title: \"hello world\",\n});\n\n// print receipt (only for terminal)\nrm.printReceipt({\n  data: {}, // object\n});\n\n// show navbar title (only for terminal and merchant-app)\nrm.setBarTitle({\n  title: \"hello world\",\n});\n\n// set storage by key and value\nrm.setStorage({\n  key: \"test\",\n  value: \"token\",\n});\n\n// get storage by key name\nrm.getStorage({\n  key: \"test\",\n  success: function ({ data }) {\n    console.log(\"content\", data);\n  },\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevenuemonster%2Frm-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevenuemonster%2Frm-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevenuemonster%2Frm-plugin/lists"}