{"id":16035269,"url":"https://github.com/lperezp/ngx-culqi","last_synced_at":"2025-03-24T08:33:46.122Z","repository":{"id":48046374,"uuid":"228305782","full_name":"lperezp/ngx-culqi","owner":"lperezp","description":"UNOFFICIAL Culqi payment gateway library made to use with Angular.","archived":false,"fork":false,"pushed_at":"2024-10-14T06:06:58.000Z","size":693,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T15:12:07.839Z","etag":null,"topics":["angular","culqi","ngx-culqi","npm","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ngx-culqi","language":"TypeScript","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/lperezp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["lperezp"]}},"created_at":"2019-12-16T04:56:53.000Z","updated_at":"2024-12-03T21:16:32.000Z","dependencies_parsed_at":"2024-07-09T22:34:00.336Z","dependency_job_id":null,"html_url":"https://github.com/lperezp/ngx-culqi","commit_stats":null,"previous_names":["lperezp/ngx-culqi","lperezp/ng-culqi"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lperezp%2Fngx-culqi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lperezp%2Fngx-culqi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lperezp%2Fngx-culqi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lperezp%2Fngx-culqi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lperezp","download_url":"https://codeload.github.com/lperezp/ngx-culqi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245066710,"owners_count":20555430,"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","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":["angular","culqi","ngx-culqi","npm","typescript"],"created_at":"2024-10-08T22:01:32.254Z","updated_at":"2025-03-24T08:33:45.789Z","avatar_url":"https://github.com/lperezp.png","language":"TypeScript","funding_links":["https://github.com/sponsors/lperezp"],"categories":["Recently Updated","Table of contents"],"sub_categories":["[Oct 07, 2024](/content/2024/10/07/README.md)","Angular"],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg width=\"230\" src=\"https://i.ibb.co/3B95v9S/icon-ngx-culqi.png\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e\nngx-culqi\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\nUNOFFICIAL [Culqi](https://culqi.com/) payment gateway library made to use with Angular by [lperezp.dev](https://lperezp.dev/?utm_source=ngx-culqi\u0026utm_medium=readme\u0026utm_campaign=ngx-culqi\u0026utm_id=github)\n\n[![Github branch](https://github.com/lperezp/culqi-angular/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/lperezp/culqi-angular/actions/workflows/pages/pages-build-deployment/badge.svg)\n[![CodeFactor](https://www.codefactor.io/repository/github/lperezp/ngx-culqi/badge?style=flat-square)](https://www.codefactor.io/repository/github/lperezp/ngx-culqi)\n[![GitHub Release Date](https://img.shields.io/github/release-date/lperezp/ngx-culqi.svg?style=flat-square)](https://github.com/lperezp/ngx-culqi/releases)\n[![npm package](https://img.shields.io/npm/v/ngx-culqi.svg?style=flat-square)](https://www.npmjs.org/package/ngx-culqi)\n[![NPM downloads](http://img.shields.io/npm/dm/ngx-culqi.svg?style=flat-square)](https://npmjs.org/package/ngx-culqi)\n[![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/lperezp/ngx-culqi/blob/master/LICENSE)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![Twitter](https://img.shields.io/badge/Twitter-lperezp_pe-blue.svg?style=flat-square\u0026logo=twitter)](https://twitter.com/lperezp_pe)\n\n\u003c/div\u003e\n\n## Demo\n\n [Ver Demo](https://lperezp.github.io/culqi-angular/)\n\n## ☀️ License\n\n[MIT](https://github.com/lperezp/ngx-culqi/blob/master/LICENSE)\n\n## 🖥 Environment Support\n\n* Angular `^18.0.0` [![npm package](https://img.shields.io/npm/v/ngx-culqi.svg?style=flat-square)](https://www.npmjs.org/package/ngx-culqi)\n\n## 📦 Installation\n\nAdding ngx-culqi to your project is as simple as running one command:\n\n```\nnpm i ngx-culqi\n```\n\n## 🔨 Usage\n\n\n```\nimport { ICulqiOptions, IOrderCulqiResponse, NgxCulqiService } from 'ngx-culqi';\n\n@Component({...})\nexport class YourComponent {\n  constructor(private ngxCulqiService: NgxCulqiService) {}\n\n  paymentCulqi(): void {\n    const order = {\n      \"amount\": 1000,\n      \"currency_code\": \"\",\n      \"description\": \"\",\n      \"order_number\": 00001,\n      \"client_details\": {\n        \"first_name\": \"\",\n        \"last_name\": \"\",\n        \"email\": \"\",\n        \"phone_number\": \"\"\n      },\n      \"expiration_date\": (Math.floor(Date.now() / 1000) + 86400),\n      \"confirm\": false\n    };\n\n    this.ngxCulqiService.generateOrder(order).subscribe((response: Partial\u003cIOrderCulqiResponse\u003e) =\u003e {\n      const culqiSettings = {\n        title: order.description,\n        currency: 'PEN',\n        amount: order.amount,\n        order: response.id,\n        xculqirsaid: environment.xculqirsaid,\n        rsapublickey: environment.rsapublickey\n      };\n\n      const culqiOptions: ICulqiOptions = { style: this.styleCulqi };\n      this.ngxCulqiService.generateToken(culqiSettings, culqiOptions);\n    });\n  }\n}\n```\n\n\n\nInside ``ngOnInit`` add the following script:\n\n```\n    ngOnInit(): void {\n    this.ngxCulqiService.loadScriptCulqi(environment.tokenCulqi, environment.apiKeyCulqi);\n    this.ngxCulqiService.tokenCreated$.subscribe(value =\u003e {\n      if (value) {\n        this.showToken(value);\n        this.ngxCulqiService.closeCulqi();\n      }\n    });\n\n    this.ngxCulqiService.orderCreated$.subscribe(value =\u003e {\n      if (value) {\n        this.showOrder(value);\n      }\n    });\n  }\n```\n\n***[Check Culqi documentation for more information](https://docs.culqi.com/#/pagos/inicio)***\n\n## 🔗 Links\n\n* [Culqi](https://culqi.com/)\n* [Culqi Docs](https://docs.culqi.com/es/documentacion/)\n\n## 🤝 Contributing\n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/lperezp/ngx-culqi/pulls)\n\nI welcome all contributions. Please read our [CONTRIBUTING.md](https://github.com/lperezp/ngx-culqi/blob/master/CONTRIBUTING.md) first. You can submit any ideas as [pull requests](https://github.com/lperezp/ngx-culqi/pulls) or as [GitHub issues](https://github.com/lperezp/ngx-culqi/issues).\n\n## 🎉 Author\n\n- [Luis Eduardo](https://lperezp.dev/?utm_source=ngx-culqi\u0026utm_medium=readme\u0026utm_campaign=ngx-culqi\u0026utm_id=github)\n\n**Love ngx-culqi? Give our repo a star :star: :arrow_up:.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flperezp%2Fngx-culqi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flperezp%2Fngx-culqi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flperezp%2Fngx-culqi/lists"}