{"id":38580664,"url":"https://github.com/neputertech/khalti","last_synced_at":"2026-01-17T08:15:25.338Z","repository":{"id":56868804,"uuid":"526743990","full_name":"neputertech/khalti","owner":"neputertech","description":"Laravel wrapper for khalti ePayment Gatway(new)","archived":false,"fork":false,"pushed_at":"2025-06-18T09:44:54.000Z","size":46,"stargazers_count":13,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T11:36:15.963Z","etag":null,"topics":["khalti","khalti-sdk","laravel","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/neputertech.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}},"created_at":"2022-08-19T20:32:02.000Z","updated_at":"2025-06-18T09:44:37.000Z","dependencies_parsed_at":"2025-06-17T12:19:08.513Z","dependency_job_id":"a698d169-8e87-43bc-b5b9-2fbb22ad1d02","html_url":"https://github.com/neputertech/khalti","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/neputertech/khalti","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neputertech%2Fkhalti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neputertech%2Fkhalti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neputertech%2Fkhalti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neputertech%2Fkhalti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neputertech","download_url":"https://codeload.github.com/neputertech/khalti/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neputertech%2Fkhalti/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: 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":["khalti","khalti-sdk","laravel","php"],"created_at":"2026-01-17T08:15:25.239Z","updated_at":"2026-01-17T08:15:25.318Z","avatar_url":"https://github.com/neputertech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Khalti \n\nThis package can help you integrate Khalti new ePayment Gateway (NEW) to your php application.\n\n[Khalti ePay Docs](https://docs.khalti.com/khalti-epayment/)\n\nHere is an example of how you can initiate Khalti transaction:\n\n```php\n...\nuse Neputer\\Facades\\Khalti;\nuse Illuminate\\Support\\Facades\\Redirect;\n\nclass PaymentController extends Controller {\n    ...\n    public function pay() {\n        $return_url = \"http://example.com/verify\";\n        $purchase_order_id = \"your_transaction_id\"; // example 123567;\n        $purchase_order_name = \"your_order_name\"; // example Transaction: 1234,\n        $amount = 1000; // Your total amount in paisa Rs 1 = 100 paisa\n\n        $response =  Khalti::initiate($return_url, $purchase_order_id, $purchase_order_name,  $amount);\n\n        // Custom handle of khalti response\n\n        return Redirect::to($response-\u003epayment_url);\n    }\n\n    public function verify(Request $request) {\n        $pidx = $request-\u003eget('pidx');\n        return Khalti::lookup($pidx);\n    }\n\n\n}\n```\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require neputertech/khalti\n```\n\nThe package will automatically register itself.\n\nYou can publish the config with:\n\n```bash\nphp artisan vendor:publish --tag=khalti-config\n```\n\n\nThis is the contents of the published config file:\n```php\n\u003c?php\n\nreturn [\n    'debug' =\u003e env('KHALTI_DEBUG', true), // set false to run on live khalti url\n    'website_url' =\u003e 'https://example.com', // your website url\n    'public_key' =\u003e env('KHALTI_PUBLIC_KEY', ''), // public key from khalti\n    'secret_key' =\u003e env('KHALTI_SECRET_KEY', ''), // secret key from khalti\n];\n```\n\n## Update .env with your khalti credentials\nThis credentals are provided with merchant dashboard. \n\nset debug flag to false in config to use live khalti \n\n```bash\nKHALTI_DEBUG=true # Set this flag to false to use khatli in production\nKHALTI_PUBLIC_KEY=\nKHALTI_SECRET_KEY=\n```\n\n\n\n## Usage\n\nThe basic concept of this package is that you can integrate Khalti ePayment Gateway (NEW) to your laravel applications and initiate/verify transactions \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneputertech%2Fkhalti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneputertech%2Fkhalti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneputertech%2Fkhalti/lists"}