{"id":51311939,"url":"https://github.com/giwiro/culqi-node","last_synced_at":"2026-07-01T04:32:47.697Z","repository":{"id":14786838,"uuid":"76863266","full_name":"giwiro/culqi-node","owner":"giwiro","description":"Typescript wrapper for Culqi web services developed for Node.js with 0 runtime dependencies.","archived":false,"fork":false,"pushed_at":"2023-08-04T01:22:25.000Z","size":324,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T21:52:04.509Z","etag":null,"topics":["culqui","javascript","no-dependencies","nodejs","typescript"],"latest_commit_sha":null,"homepage":"https://www.culqi.com/","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/giwiro.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":"2016-12-19T13:10:05.000Z","updated_at":"2024-12-02T16:57:40.000Z","dependencies_parsed_at":"2024-06-21T05:45:29.273Z","dependency_job_id":"b2f60810-3cc7-4fb2-9ae2-eb235af647b5","html_url":"https://github.com/giwiro/culqi-node","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/giwiro/culqi-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giwiro%2Fculqi-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giwiro%2Fculqi-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giwiro%2Fculqi-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giwiro%2Fculqi-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giwiro","download_url":"https://codeload.github.com/giwiro/culqi-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giwiro%2Fculqi-node/sbom","scorecard":{"id":428607,"data":{"date":"2025-08-11","repo":{"name":"github.com/giwiro/culqi-node","commit":"3c18a847a34996e056328c7c560768d8782bf5c5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/14 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":"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":"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":-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":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":-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 24 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":1,"reason":"9 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-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-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"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-19T02:48:40.153Z","repository_id":14786838,"created_at":"2025-08-19T02:48:40.153Z","updated_at":"2025-08-19T02:48:40.153Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34993435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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":["culqui","javascript","no-dependencies","nodejs","typescript"],"created_at":"2026-07-01T04:32:47.117Z","updated_at":"2026-07-01T04:32:47.664Z","avatar_url":"https://github.com/giwiro.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/giwiro/culqi-node/master/assets/culqi.jpg\" width=\"350\" /\u003e\n\n# culqi-node\nNode.js wrapper for [Culqi](https://www.culqi.com/) web services. It is written in typescript using pure Node.js api with 0 runtime dependencies.\n\n[![npm version](https://badge.fury.io/js/culqi-node.svg)](https://badge.fury.io/js/culqi-node)\n[![Build Status](https://circleci.com/gh/giwiro/culqi-node.svg?style=shield)](https://app.circleci.com/pipelines/github/giwiro/culqi-node?branch=master)\n[![Coverage Status](https://coveralls.io/repos/github/giwiro/culqi-node/badge.svg?branch=master)](https://coveralls.io/github/giwiro/culqi-node?branch=master)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![types](https://img.shields.io/npm/types/culqi-node)]()\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Known Vulnerabilities](https://snyk.io/test/github/giwiro/culqi-node/badge.svg)](https://snyk.io/test/github/giwiro/culqi-node)\n\n### Install\n```sh\n# Get latest version\n$ npm install culqi-node\n```\n\n### Quick start\n```javascript\nconst Culqi = require('culqi-node');\nconst culqi = new Culqi({\n    privateKey: 'sk_test_xxxxxxxxxxxxxxxx',\n});\n\n(async () =\u003e {\n    const token = await culqi.tokens.getToken({\n        id: 'tkn_test_xxxxxxxxxxxxxxxx',\n    });\n    console.log(token.id);\n})();\n```\n\n### Common operations\nIn a regular flow, some other culqi frontend library such as the [Android](https://github.com/culqi/culqi-android) or \n[CulqiJS](https://www.culqi.com/docs/#/pagos/js), would generate the token in a \"safe\" way. That token is going to be\nthe input for generating charges.\n\n#### Create charge\n\n```javascript\nconst Culqi = require('culqi-node');\nconst culqi = new Culqi({\n    privateKey: 'sk_test_xxxxxxxxxxxxxxxx',\n});\n\n(async () =\u003e {\n    const charge = await culqi.charges.createCharge({\n        amount: '10000',\n        currency_code: 'PEN',\n        email: 'richard@piedpiper.com',\n        source_id: 'tkn_test_xxxxxxxxxxxxxxxx',\n    });\n\n    console.log(charge.id);\n})();\n```\n\n#### Create charge and the capture it\n\n```javascript\nconst Culqi = require('culqi-node');\nconst culqi = new Culqi({\n    privateKey: 'sk_test_xxxxxxxxxxxxxxxx',\n});\n\n(async () =\u003e {\n    const charge = await culqi.charges.createCharge({\n        amount: '10000',\n        currency_code: 'PEN',\n        email: 'richard@piedpiper.com',\n        source_id: 'tkn_test_xxxxxxxxxxxxxxxx',\n        capture: false,\n    });\n    \n    // Do some other operations, such as custom self-made fraud prevention\n\n    const capturedCharge = await culqi.charges.captureCharge({\n        // chr_test_xxxxxxxxxxxxxxxx\n        id: charge.id,\n    });\n    \n    // This should be true\n    console.log(capturedCharge.capture);\n})();\n```\n\n#### Refund charge\n\n```javascript\nconst Culqi = require('culqi-node');\nconst culqi = new Culqi({\n    privateKey: 'sk_test_xxxxxxxxxxxxxxxx',\n});\n\n(async () =\u003e {\n    const refund = await culqi.refunds.createRefund({\n        amount: 2000,\n        charge_id: 'chr_test_xxxxxxxxxxxxxxxx',\n        reason: 'Fraud',\n    });\n    \n    console.log(refund.id);\n})();\n```\n\n### Uncommon operations\n\n#### Create token\nNormally you wouldn't create the token by yourself. To do so, or if any credit card data \ngoes through your server, you will need to\nbe [PCI compliant](https://www.pcisecuritystandards.org/documents/PCI-DSS-v3_2-SAQ-D_Merchant-rev1_1.pdf?agreement=true\u0026time=1508189914058).\nMore information [here](https://culqi.zendesk.com/hc/es/articles/360024196973--Por-qu%C3%A9-me-aparece-el-siguiente-mensaje-Tu-c%C3%B3digo-de-comercio-no-est%C3%A1-autorizado-para-hacer-este-tipo-de-operaciones-PCI-).\n\nIn order to create a token, you will need to create a `Culqi` instance a bit differently.\nYou will need to provide the `pciCompliant` property as `true` and `publicKey`.\n\n```javascript\nconst Culqi = require('culqi-node');\nconst culqi = new Culqi({\n    privateKey: 'sk_test_xxxxxxxxxxxxxxxx',\n    pciCompliant: true,\n    publicKey: 'pk_test_xxxxxxxxxxxxxxxx',\n});\n\n(async () =\u003e {\n    const token = await culqi.tokens.createToken({\n        card_number: '4111111111111111',\n        cvv: '123',\n        expiration_month: '09',\n        expiration_year: '2025',\n        email: 'richard@piedpiper.com',\n    });\n    \n    console.log(token.id);\n})();\n```\n\n\n### Available operations\n\n#### [Token](https://www.culqi.com/api/#/tokens)\n\n- Create token\n- Get token\n- Get tokens\n- Update token\n\n#### [Charges](https://www.culqi.com/api/#/cargos)\n\n- Create charge\n- Get charge\n- Get charges\n- Update charge\n- Capture charge\n\n#### [Refunds](https://www.culqi.com/api/#/devoluciones)\n\n- Create refund\n- Get refund\n- Get refunds\n- Update refund\n\n#### [Customers](https://www.culqi.com/api/#/clientes)\n\n- Create customer\n- Get customer\n- Get customers\n- Update customer\n- Delete customer\n\n#### [Cards](https://www.culqi.com/api/#/tarjetas)\n\n- Create card\n- Get card\n- Get cards\n- Update card\n- Delete card\n\n#### [Plans](https://www.culqi.com/api/#/planes)\n\n- Create plan\n- Get plan\n- Get plans\n- Update plan\n- Delete plan\n\n#### [Subscriptions](https://www.culqi.com/api/#/suscripciones)\n\n- Create subscription\n- Get subscription\n- Get subscriptions\n- Update subscription\n- Delete subscription\n\n#### [Orders](https://www.culqi.com/api/#/ordenes)\n\n- Create order\n- Confirm order\n- Get order\n- Get orders\n- Update order\n- Delete order\n\n#### [Events](https://www.culqi.com/api/#/eventos)\n\n- Get event\n- Get events\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiwiro%2Fculqi-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiwiro%2Fculqi-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiwiro%2Fculqi-node/lists"}