PHPackages                             babaly/laravel-paytech - 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. babaly/laravel-paytech

ActiveLibrary[Payment Processing](/categories/payments)

babaly/laravel-paytech
======================

This package helps laravel developers to use paytech payment platform into their website (ecommerce etc.)

3386PHP

Since Dec 3Pushed 3y ago3 watchersCompare

[ Source](https://github.com/babaly/laravel-paytech)[ Packagist](https://packagist.org/packages/babaly/laravel-paytech)[ RSS](/packages/babaly-laravel-paytech/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Paytech Payment
=======================

[](#laravel-paytech-payment)

[![Latest Version on Packagist](https://camo.githubusercontent.com/395d48c907e89db048a0d01b2ea36197286d43caba9db4d269c9a7d427fbb7d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626162616c792f6c61726176656c2d706179746563682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/babaly/laravel-paytech)

[![Total Downloads](https://camo.githubusercontent.com/899a2ec52f4980aad37e0cd63170c386e161c03179a1b765358a9c8e8a1e45e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626162616c792f6c61726176656c2d706179746563682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/babaly/laravel-paytech)

Description
-----------

[](#description)

This package help laravel developers to use the [paytech](https://paytech.sn/) payment methods created by [Intech-group](https://intech.sn/).

\[[![](https://camo.githubusercontent.com/f0415a460c3af6b6dcd0b204ab4f05724dad2f2001f7311ba122956db7d8cb70/68747470733a2f2f706179746563682e736e2f6173736574732f737263732f696d672f6e65772d696d6167652f706179746563682d372e706e67)](https://camo.githubusercontent.com/f0415a460c3af6b6dcd0b204ab4f05724dad2f2001f7311ba122956db7d8cb70/68747470733a2f2f706179746563682e736e2f6173736574732f737263732f696d672f6e65772d696d6167652f706179746563682d372e706e67)\]

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require babaly/laravel-paytech
```

Add the service provider to config/app.php into providers section

```
return [
    'providers' => [
        ...
        App\Providers\PaytechServiceProvider::class
    ]
];
```

You can publish all tags by running the command

```
php artisan vendor:publish --provider="Babaly\LaravelPaytech\LaravelPaytechServiceProvider"
```

\--OR--

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-paytech-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-paytech-config"
```

This is the contents of the published config file:

```
return [
    'PAYTECH_API_KEY' => '',
    'PAYTECH_SECRET_KEY' => '',
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-paytech-views"
```

You can publish the services file with:

```
php artisan vendor:publish --tag="laravel-paytech-services"
```

You can publish the model file with:

```
php artisan vendor:publish --tag="laravel-paytech-models"
```

You can publish the controller file with:

```
php artisan vendor:publish --tag="laravel-paytech-controllers"
```

Usage
-----

[](#usage)

Copy the API\_SECRET\_KEY and API\_KEY from your paytech account and paste it to the config file with somethings likde this

```
return [
    'PAYTECH_API_KEY' => '',
    'PAYTECH_SECRET_KEY' => '',
];
```

Run Your application with the artisan command

```
php artisan serve
```

After that, visit the payment route to test payment platform

```
http://127.0.0.1:8000/payment
```

NB: Make sure that the routes is copied to default route web, else, copied the next line to your route file

```
use App\Http\Controllers\PaymentController;

Route::get('payment', [PaymentController::class, 'index'])->name('payment.index');
Route::post('/checkout', [PaymentController::class, 'payment'])->name('payment.submit');
Route::get('ipn', [PaymentController::class, 'ipn'])->name('paytech-ipn');
Route::get('payment-success/{code}', [PaymentController::class, 'success'])->name('payment.success');
Route::get('payment/{code}/success', [PaymentController::class, 'paymentSuccessView'])->name('payment.success.view');
Route::get('payment-cancel', [PaymentController::class, 'cancel'])->name('paytech.cancel');
```

A windows like this image will appear if everythings is ok

[![Alt text](https://user-images.githubusercontent.com/65746012/205413240-23dbf575-3ac1-4ee6-b0c9-8b367be42ff2.png)](https://user-images.githubusercontent.com/65746012/205413240-23dbf575-3ac1-4ee6-b0c9-8b367be42ff2.png)

Click the button to validate the command and you'll be redirected to paytech platform payment

[![Alt text](https://user-images.githubusercontent.com/65746012/205413259-7fca6061-44a9-4cba-8332-0f4ed655d7be.png)](https://user-images.githubusercontent.com/65746012/205413259-7fca6061-44a9-4cba-8332-0f4ed655d7be.png)

[![Alt text](https://user-images.githubusercontent.com/65746012/205413273-e8a783d1-d89d-4722-b125-f6153b431fc7.png)](https://user-images.githubusercontent.com/65746012/205413273-e8a783d1-d89d-4722-b125-f6153b431fc7.png)

[![Alt text](https://user-images.githubusercontent.com/65746012/205413285-02dbe1fd-9f20-4064-9407-96aaca82d7ec.png)](https://user-images.githubusercontent.com/65746012/205413285-02dbe1fd-9f20-4064-9407-96aaca82d7ec.png)

[![Alt text](https://user-images.githubusercontent.com/65746012/205413298-452af97f-fc1e-41d6-89ba-218c21291984.png)](https://user-images.githubusercontent.com/65746012/205413298-452af97f-fc1e-41d6-89ba-218c21291984.png)

Mode Production
---------------

[](#mode-production)

Don't forget to set test mode to false if you're in production. You can disabled to the controller by calling methods setTestMode(false) or enable the live mode with setLiveMode(true).

If you're in test mode, Paytech retrieve just 100xof for any of your transactions amount. See more about transactions to their [documentation](https://paytech.sn/)

See their [documentation](https://doc.paytech.sn/) for more information

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Baba LY](https://github.com/babaly)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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/80ed7fd4ce860787c1a8fa6cba97ba01afe805754a6e84a1c20bb6c85c0bfbe4?d=identicon)[babaly](/maintainers/babaly)

---

Top Contributors

[![babaillugraphic](https://avatars.githubusercontent.com/u/92316781?v=4)](https://github.com/babaillugraphic "babaillugraphic (4 commits)")[![babaly](https://avatars.githubusercontent.com/u/65746012?v=4)](https://github.com/babaly "babaly (1 commits)")

### Embed Badge

![Health badge](/badges/babaly-laravel-paytech/health.svg)

```
[![Health](https://phpackages.com/badges/babaly-laravel-paytech/health.svg)](https://phpackages.com/packages/babaly-laravel-paytech)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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