Download the PHP package nutandc/nepal-payment-gateway without Composer
On this page you can find all versions of the php package nutandc/nepal-payment-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nutandc/nepal-payment-gateway
More information about nutandc/nepal-payment-gateway
Files in nutandc/nepal-payment-gateway
Package nepal-payment-gateway
Short Description Nepal payment gateway integration for Laravel: eSewa, Khalti, ConnectIPS, optional Stripe, idempotent and secure.
License MIT
Homepage https://github.com/Nutandc/nepal-payment-gateway
Informations about the package nepal-payment-gateway
Nepal Payment Gateway
Laravel-first payment gateway package for Nepal gateways with optional Stripe support. Built for PHP 8.2+ and Laravel 10+ with clean, typed, and configurable services.
Features
- Nepal gateways: eSewa, Khalti, ConnectIPS
- Optional Stripe integration (Checkout Session)
- Config-driven endpoints and credentials (no hardcoded URLs)
- Idempotency support to prevent duplicate transactions
- PSR-3 logging and structured error handling
- SOLID, typed, and testable services
Gateway flags
| Gateway | Config Key | Default |
|---|---|---|
| eSewa | NEPAL_PAYMENT_ESEWA_ENABLED |
true |
| Khalti | NEPAL_PAYMENT_KHALTI_ENABLED |
true |
| ConnectIPS | NEPAL_PAYMENT_CONNECTIPS_ENABLED |
true |
| Stripe | NEPAL_PAYMENT_STRIPE_ENABLED |
false |
Requirements
- PHP 8.2+
- Laravel 10/11/12
- Extensions:
ext-curl,ext-openssl
Installation
Publish config:
Configuration
Copy .env.example values into your Laravel .env file and update them for your gateway accounts.
Set .env values as needed (examples):
Usage
All gateways are accessed via the GatewayManager service.
eSewa (payment + verify)
Khalti (payment + verify)
ConnectIPS (payment + verify)
Stripe (optional)
Install the Stripe SDK and enable the gateway:
Usage (amount is in the smallest currency unit, e.g. cents):
Idempotency
Pass a custom idempotency key for any payment call:
Testing
License
MIT
All versions of nepal-payment-gateway with dependencies
ext-curl Version *
ext-openssl Version *
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0