{"id":23117742,"url":"https://github.com/yubarajshrestha/nchl","last_synced_at":"2025-08-16T22:30:40.165Z","repository":{"id":36937649,"uuid":"230768636","full_name":"yubarajshrestha/nchl","owner":"yubarajshrestha","description":"Connect IPS payment gateway package.","archived":false,"fork":false,"pushed_at":"2023-07-10T18:57:52.000Z","size":359,"stargazers_count":8,"open_issues_count":6,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T18:18:36.473Z","etag":null,"topics":["connect-ips","gateway-api","laravel","nchl"],"latest_commit_sha":null,"homepage":"https://yubarajshrestha.github.io/nchl/","language":"PHP","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/yubarajshrestha.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-29T15:27:27.000Z","updated_at":"2024-05-23T06:34:52.000Z","dependencies_parsed_at":"2023-02-17T18:31:17.187Z","dependency_job_id":null,"html_url":"https://github.com/yubarajshrestha/nchl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yubarajshrestha/nchl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yubarajshrestha%2Fnchl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yubarajshrestha%2Fnchl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yubarajshrestha%2Fnchl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yubarajshrestha%2Fnchl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yubarajshrestha","download_url":"https://codeload.github.com/yubarajshrestha/nchl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yubarajshrestha%2Fnchl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270781196,"owners_count":24643804,"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-08-16T02:00:11.002Z","response_time":91,"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":["connect-ips","gateway-api","laravel","nchl"],"created_at":"2024-12-17T04:23:50.727Z","updated_at":"2025-08-16T22:30:39.923Z","avatar_url":"https://github.com/yubarajshrestha.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NCHL\nConnect IPS payment gateway package.\n\n[![Latest Stable Version](https://poser.pugx.org/yubarajshrestha/nchl/v/stable)](https://packagist.org/packages/yubarajshrestha/nchl)\n[![Total Downloads](https://poser.pugx.org/yubarajshrestha/nchl/downloads)](https://packagist.org/packages/yubarajshrestha/nchl)\n\n[![License](https://poser.pugx.org/yubarajshrestha/nchl/license)](https://packagist.org/packages/yubarajshrestha/nchl)\n![Build](https://travis-ci.com/yubarajshrestha/nchl.svg?branch=master)\n[![StyleCI](https://github.styleci.io/repos/230768636/shield?branch=master)](https://github.styleci.io/repos/230768636)\n[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)\n\n### Installation\nRequire this package with composer.\n```shell\ncomposer require yubarajshrestha/nchl\n```\nLaravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.\n\n### Laravel 5.5+:\nIf you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php\n```php\nYubarajShrestha\\NCHL\\NchlServiceProvider::class,\n```\nIf you want to use the facade to log messages, add this to your facades in app.php:\n```php\n'NCHL' =\u003e YubarajShrestha\\NCHL\\Facades\\NchlFacade::class,\n```\n### Copy the package config to your local config with the publish command:\n```shell\nphp artisan vendor:publish --provider=\"YubarajShrestha\\NCHL\\NchlServiceProvider\"\n```\n### Copy the environment variables and setup as per required in .env:\n```shell\nNCHL_MERCHANT_ID=\nNCHL_APP_ID=\nNCHL_APP_NAME=\nNCHL_APP_PASSWORD=\nNCHL_GATEWAY=\nNCHL_VALIDATION_URL=\nNCHL_TRANSACTION_DETAIL_URL=\n```\n\n### Basic Usage\nA `NCHL` is Service Class and can be instanciated like this:\n\n```php\n// In Controller\n$nchl = NCHL::__init([\n    \"txn_id\" =\u003e '3',\n    \"txn_date\" =\u003e '1-10-2020',\n    \"txn_amount\" =\u003e '500',\n    \"reference_id\" =\u003e 'REF-001',\n    \"remarks\" =\u003e 'RMKS-001',\n    \"particulars\" =\u003e 'PART-001',\n]);\n```\n\nAnd then in view you will create a form to start payment, which redirects you to `Connect IPS`.\n\n```html\n// In View\n\u003cform action=\"{{ $nchl-\u003ecore-\u003egatewayUrl() }}\" method=\"post\"\u003e\n    \u003clabel\u003eMERCHANT ID\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"MERCHANTID\" id=\"MERCHANTID\" value=\"{{ $nchl-\u003ecore-\u003egetMerchantId() }}\"/\u003e\n    \u003clabel\u003eAPP ID\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"APPID\" id=\"APPID\" value=\"{{ $nchl-\u003ecore-\u003egetAppId() }}\"/\u003e\n    \u003clabel\u003eAPP NAME\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"APPNAME\" id=\"APPNAME\" value=\"{{ $nchl-\u003ecore-\u003egetAppName() }}\"/\u003e\n    \u003clabel\u003eTXN ID\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"TXNID\" id=\"TXNID\" value=\"{{ $nchl-\u003ecore-\u003egetTxnId() }}\"/\u003e\n    \u003clabel\u003eTXN DATE\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"TXNDATE\" id=\"TXNDATE\" value=\"{{ $nchl-\u003ecore-\u003egetTxnDate() }}\"/\u003e\n    \u003clabel\u003eTXN CRNCY\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"TXNCRNCY\" id=\"TXNCRNCY\" value=\"{{ $nchl-\u003ecore-\u003egetCurrency() }}\"/\u003e\n    \u003clabel\u003eTXN AMT\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"TXNAMT\" id=\"TXNAMT\" value=\"{{ $nchl-\u003ecore-\u003egetTxnAmount() }}\"/\u003e\n    \u003clabel\u003eREFERENCE ID\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"REFERENCEID\" id=\"REFERENCEID\" value=\"{{ $nchl-\u003ecore-\u003egetReferenceId() }}\"/\u003e\n    \u003clabel\u003eREMARKS\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"REMARKS\" id=\"REMARKS\" value=\"{{ $nchl-\u003ecore-\u003egetRemarks() }}\"/\u003e\n    \u003clabel\u003ePARTICULARS\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"PARTICULARS\" id=\"PARTICULARS\" value=\"{{ $nchl-\u003ecore-\u003egetParticulars() }}\"/\u003e\n    \u003clabel\u003eTOKEN\u003c/label\u003e\n    \u003cinput type=\"text\" name=\"TOKEN\" id=\"TOKEN\" value=\"{{ $nchl-\u003ecore-\u003etoken() }}\"/\u003e\n    \u003cinput type=\"submit\" value=\"Submit\"\u003e\n\u003c/form\u003e\n```\n\nAfter success or failure payment it will redirect you to the redirect url that you've provided to `Connect IPS`.\n\n### Validating Payment and retrieving Payment Details\nRe-instantiate the NCHL serivce class same like before.\n```php\n// In Controller\n$nchl = NCHL::__init([\n    \"txn_id\" =\u003e '3',\n    \"txn_date\" =\u003e '1-10-2020',\n    \"txn_amount\" =\u003e '500',\n    \"reference_id\" =\u003e 'REF-001',\n    \"remarks\" =\u003e 'RMKS-001',\n    \"particulars\" =\u003e 'PART-001',\n]);\n\n/** Validating Payment **/\n$response = $nchl-\u003epaymentValidate();\n\n/** Retrieving payment details **/\n$response = $nchl-\u003epaymentDetails();\n\n```\n\nWell that's it. Enjoy\n\n### Contributors\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://yubarajshrestha.com.np\"\u003e\u003cimg src=\"https://avatars0.githubusercontent.com/u/7955362?s=460\u0026v=4\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eYubaraj Shrestha\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n### License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyubarajshrestha%2Fnchl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyubarajshrestha%2Fnchl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyubarajshrestha%2Fnchl/lists"}