PHPackages                             o2one/knet-payment-gateway - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. o2one/knet-payment-gateway

ActiveLibrary[Payment Processing](/categories/payments)

o2one/knet-payment-gateway
==========================

This package is provides an expressive, fluent interface to Knet's payment services.

2131PHP

Since Nov 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sanu-basak/knet-payment-gateway)[ Packagist](https://packagist.org/packages/o2one/knet-payment-gateway)[ RSS](/packages/o2one-knet-payment-gateway/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Knet Payment Gateway (Laravel 5.6 to Laravel 8.x)
=================================================

[](#knet-payment-gateway-laravel-56-to-laravel-8x)

This package used to integrate with the new Knet payment gateway.

Requirements
------------

[](#requirements)

PHPLaravelPackage7.3+8.xv1.3.07.2.5+7.xv1.2.0&lt;7.2.56.xv1.1.0&lt;7.15.xv1.0.\*Installation
------------

[](#installation)

1. Install the package by running this command in your terminal/cmd:

```
composer require o2one/knet-payment-gateway

```

2. Create this package's Knet to the tap option of your gateway in **config/knet.php**:

Optionally, you can import config file by running this command in your terminal/cmd:

```
php artisan vendor:publish --tag=knet-config

```

Change Environment
------------------

[](#change-environment)

you can change your environment from local to production in case you want to make sure that everything is working fine, to do that change `.env` file like this

```
APP_ENV=local // or production

KNET_TRANSPORT_ID=
KNET_TRANSPORT_PASSWORD=
KNET_RESOURCE_KEY=
KNET_DEBUG=true //or false in production
```

Test cards
----------

[](#test-cards)

Card NumberExpiry DatePINStatus888888000000000109/211234CAPTURED888888000000000205/211234NOT CAPTUREDAuthors
-------

[](#authors)

- [**Sanu Basak**](https://github.com/sanu-basak) - *Initial work*

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

Special Thanks to
-----------------

[](#special-thanks-to)

- [Laravel](https://laravel.com) Community &amp; [o2one Labs](https://www.o2onelabs.com/)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e4cfb609f7d6ef72be8ff1cad6233714d1982ee239d9cd5f51e45d4bb062518?d=identicon)[sanu\_basak](/maintainers/sanu_basak)

---

Top Contributors

[![sanu-basak](https://avatars.githubusercontent.com/u/29189226?v=4)](https://github.com/sanu-basak "sanu-basak (1 commits)")

### Embed Badge

![Health badge](/badges/o2one-knet-payment-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/o2one-knet-payment-gateway/health.svg)](https://phpackages.com/packages/o2one-knet-payment-gateway)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
