PHPackages                             codepreneur/casys-pay - 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. codepreneur/casys-pay

ActiveLibrary[Payment Processing](/categories/payments)

codepreneur/casys-pay
=====================

Reusable Casys VPOS payment integration for Laravel.

1.3(1mo ago)135MITPHPPHP ^8.2CI passing

Since Jan 30Pushed 1mo agoCompare

[ Source](https://github.com/kodpreneur-dooel/casys-pay)[ Packagist](https://packagist.org/packages/codepreneur/casys-pay)[ Docs](https://github.com/kodpreneur-dooel/casys-pay)[ RSS](/packages/codepreneur-casys-pay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (5)Used By (0)

Casys Pay
=========

[](#casys-pay)

Reusable Casys VPOS payment integration for Laravel applications and packages.

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

[](#installation)

Install the package via Composer:

```
composer require codepreneur/casys-pay
```

Publish the configuration file:

```
php artisan vendor:publish --tag="casys-config"
```

Optionally publish the views:

```
php artisan vendor:publish --tag="casys-views"
```

For package development, this repository now ships with an Orchestra Testbench workbench and Laravel Boost:

```
composer install
php artisan boost:install
```

If Codex MCP support is not registered automatically, add it from the package root:

```
codex mcp add laravel-boost -- php artisan boost:mcp
```

Configuration
-------------

[](#configuration)

Set these environment variables in the consuming app or workbench:

```
CASYS_MERCHANT_ID=
CASYS_MERCHANT_NAME=
CASYS_CURRENCY=MKD
CASYS_PASSWORD=
CASYS_PAYMENT_URL=https://vpos.cpay.com.mk/mk-MK
CASYS_SUCCESS_URL=/casys/success
CASYS_FAIL_URL=/casys/fail
CASYS_SUCCESS_VIEW=
CASYS_FAIL_VIEW=
```

Usage
-----

[](#usage)

Build a payment payload:

```
use Codepreneur\CasysPay\Contracts\CasysClientInterface;

$payload = app(CasysClientInterface::class)->buildPayload([
    'amount' => 1200,
    'details1' => (string) $order->id,
    'details2' => (string) now()->timestamp,
    'customer' => [
        'first_name' => $order->customer_first_name,
        'last_name' => $order->customer_last_name,
        'email' => $order->customer_email,
        'phone' => $order->customer_phone,
    ],
]);
```

Render the hosted payment form:

```
@include('casys::casys.form', [
    'paymentUrl' => config('casys.payment_url'),
    'payload' => $payload->toArray(),
])
```

Handling callbacks
------------------

[](#handling-callbacks)

Listen for the success and failure events dispatched by the package:

```
use Codepreneur\CasysPay\Events\CasysPaymentFailed;
use Codepreneur\CasysPay\Events\CasysPaymentSucceeded;
use Illuminate\Support\Facades\Event;

Event::listen(CasysPaymentSucceeded::class, function ($event) {
    // update order or membership state
});

Event::listen(CasysPaymentFailed::class, function ($event) {
    // mark the payment attempt as failed
});
```

Testing
-------

[](#testing)

Run the test suite with:

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

License
-------

[](#license)

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

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance90

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~19 days

Total

4

Last Release

48d ago

PHP version history (2 changes)1.0PHP ^8.4

1.2PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e0a86c135d6db93f47a4eef421bc638f33308761a872fc9f8bf789883ecd4441?d=identicon)[kodpreneur-dooel](/maintainers/kodpreneur-dooel)

---

Top Contributors

[![danielveselinov](https://avatars.githubusercontent.com/u/87199149?v=4)](https://github.com/danielveselinov "danielveselinov (9 commits)")

---

Tags

laravelpaymentsvposcasys

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/codepreneur-casys-pay/health.svg)

```
[![Health](https://phpackages.com/badges/codepreneur-casys-pay/health.svg)](https://phpackages.com/packages/codepreneur-casys-pay)
```

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[appwilio/yakassa

Yandex.Kassa payments

353.8k](/packages/appwilio-yakassa)

PHPackages © 2026

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