PHPackages                             evilnet/dotpay - 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. evilnet/dotpay

ActiveLibrary[Payment Processing](/categories/payments)

evilnet/dotpay
==============

Package for Dotpay payments via api instead of form

2.1.3(5y ago)1222.3k10MITPHPPHP ~5.6|~7.0CI failing

Since Sep 23Pushed 2y ago3 watchersCompare

[ Source](https://github.com/axotion/laravel-dotpay)[ Packagist](https://packagist.org/packages/evilnet/dotpay)[ Docs](https://github.com/Evilnet/Dotpay)[ RSS](/packages/evilnet-dotpay/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (3)Versions (16)Used By (0)

laravel-dotpay
==============

[](#laravel-dotpay)

Paczka Dotpay do Laravela 5.x. Pozwala przesyłać dane bezpośrednio przez API zamiast formularza.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1410181af7f035eef86b697e88b090b7dd901ad3bce3fb0c1e9e915ff49be5f3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61786f74696f6e2f6c61726176656c2d646f747061792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/axotion/laravel-dotpay/?branch=master)[![Build Status](https://camo.githubusercontent.com/3f379e894066ad186bbe13f91485de2fd86f157b60f26cff66d294ee94a69322/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61786f74696f6e2f6c61726176656c2d646f747061792f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/axotion/laravel-dotpay/build-status/master)[![Latest Unstable Version](https://camo.githubusercontent.com/168689d7b7b494e1631231b6355dcc3704a7bffb6ce0f77c29ef76e4422fbd31/68747470733a2f2f706f7365722e707567782e6f72672f6576696c6e65742f646f747061792f762f756e737461626c65)](https://packagist.org/packages/evilnet/dotpay)[![License](https://camo.githubusercontent.com/ecc84352b45f7bbc82249086294e13c19ec0fb3ba8cf850c84f7ef9a87b33260/68747470733a2f2f706f7365722e707567782e6f72672f6576696c6e65742f646f747061792f6c6963656e7365)](https://packagist.org/packages/evilnet/dotpay)[![Total Downloads](https://camo.githubusercontent.com/9db3bdcd1601816ef4ca7c0ca7230b8314bc68c888ad8bcddacf1836dfaf497e/68747470733a2f2f706f7365722e707567782e6f72672f6576696c6e65742f646f747061792f646f776e6c6f616473)](https://packagist.org/packages/evilnet/dotpay)

Struktura
---------

[](#struktura)

```
src/
tests/

```

Instalacja
----------

[](#instalacja)

Przez composera

```
$ composer require evilnet/dotpay
```

lub w przypadku używania aktualnej wersji z mastera (niezalecane jeżeli chcesz używać najbardziej stabilnej wersji która została ujęta w release) dodaj do pliku composera

```
 "require": {
         "evilnet/dotpay": "dev-master"
     },
```

Potem zarejestruj usługę i ewentualnie alias by móc używać fasady w config/app.php (Niepotrzebne od Laravela 5.5 i wzwyż)

```
'providers' => [

     Evilnet\Dotpay\DotpayServiceProvider::class,

 'aliases' => [
     'Dotpay' => Evilnet\Dotpay\Facades\Dotpay::class

```

Opublikuj konfguracje i wprowadź w niej potrzebne dane

```
php artisan vendor:publish --provider="Evilnet\Dotpay\DotpayServiceProvider"

```

Dodaj wartości do pliku .env

```
DOTPAY_USERNAME=
DOTPAY_PASSWORD=
DOTPAY_SHOP_ID=
DOTPAY_PIN=
DOTPAY_BASE_URL=https://ssl.dotpay.pl/test_seller/

```

I dodaj swoją metodę do obsługi callbacku jako wyjątek w pliku VerifyCsrfToken (Potrzebne by uderzenia POST z dotpaya nie wymagały tego tokenu)

### Środowiska

[](#środowiska)

Produkcyjne:

Testowe: [https://ssl.dotpay.pl/test\_seller/](https://ssl.dotpay.pl/test_seller/)

Przykład użycia
---------------

[](#przykład-użycia)

```
namespace App\Http\Controllers;

use Evilnet\Dotpay\DotpayManager;
use Illuminate\Http\Request;
use Illuminate\Http\Response;

class DotpayController extends Controller
{

    private $dotpayManager;

    public function __construct(DotpayManager $dotpayManager)
    {
        $this->dotpayManager = $dotpayManager;
    }

    // Tutaj uderzy Dotpay z danymi o tym w jakim stanie jest transakcja. Zwrócenie OK jest wymagane by dotpay przyjął, że serwer odpowiada poprawnie

    public function callback(Request $request)
    {
        $response = $this->dotpayManager->callback($request->all());

        //Do whatever you want with this

        return new Response('OK');
    }

    public function pay()
    {
        $data = [
            'amount' => '100',
            'currency' => 'PLN',
            'description' => 'Payment for internal_id order',
            'control' => '12345', //ID that dotpay will pong you in the answer
            'language' => 'pl',
            'ch_lock' => '1',
            'url' => config('dotpay.options.url'),
            'urlc' => config('dotpay.options.curl'),
            'expiration_datetime' => '2017-12-01T16:48:00',
            'payer' => [
                'first_name' => 'John',
                'last_name' => 'Smith',
                'email' => 'john.smith@example.com',
                'phone' => '+48123123123'
            ],
            'recipient' => config('dotpay.options.recipient')

        ];

        return redirect()->to($this->dotpayManager->createPayment($data));
    }
}
```

Change log
----------

[](#change-log)

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

Testing
-------

[](#testing)

```
$ phpunit vendor/evilnet/dotpay/tests
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Axotion](https://github.com/axotion)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 61.1% 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.

###  Release Activity

Cadence

Every ~90 days

Recently: every ~137 days

Total

13

Last Release

2120d ago

Major Versions

0.0.0 → 1.0.02017-11-14

1.0.0 → 2.02017-11-17

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7965436?v=4)[axotion](/maintainers/axotion)[@axotion](https://github.com/axotion)

---

Top Contributors

[![axotion](https://avatars.githubusercontent.com/u/7965436?v=4)](https://github.com/axotion "axotion (11 commits)")[![mgralikowski](https://avatars.githubusercontent.com/u/17027876?v=4)](https://github.com/mgralikowski "mgralikowski (3 commits)")[![kubasikorski](https://avatars.githubusercontent.com/u/6338063?v=4)](https://github.com/kubasikorski "kubasikorski (2 commits)")[![krystianbajno](https://avatars.githubusercontent.com/u/33201769?v=4)](https://github.com/krystianbajno "krystianbajno (1 commits)")[![zmudzinski](https://avatars.githubusercontent.com/u/30274239?v=4)](https://github.com/zmudzinski "zmudzinski (1 commits)")

---

Tags

dotpaydotpay-paymentslaravel-5-packagelaravel-packagelaraveldotpayevilnet

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/evilnet-dotpay/health.svg)

```
[![Health](https://phpackages.com/badges/evilnet-dotpay/health.svg)](https://phpackages.com/packages/evilnet-dotpay)
```

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4849.3k](/packages/sebdesign-laravel-viva-payments)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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