PHPackages                             ibehbudov/payment-gateways - 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. ibehbudov/payment-gateways

ActiveLibrary[Payment Processing](/categories/payments)

ibehbudov/payment-gateways
==========================

Payment Gateways for Laravel

51.6k↓33.3%PHP

Since Oct 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ibehbudov/payment-gateways)[ Packagist](https://packagist.org/packages/ibehbudov/payment-gateways)[ RSS](/packages/ibehbudov-payment-gateways/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

KapitalBank, AzeriCard payment gateways for Laravel (under development)
-----------------------------------------------------------------------

[](#kapitalbank-azericard-payment-gateways-for-laravel-under-development)

### PHP version

[](#php-version)

- PHP version &gt;= 8.0

### Installation

[](#installation)

```
composer require ibehbudov/payment-gateways
```

### Publish vendor files

[](#publish-vendor-files)

```
php artisan vendor:publish --tag=payment-gateways
```

### Add alias

[](#add-alias)

```
'Payment'    =>  Ibehbudov\PaymentGateways\Facades\Payment::class
```

Usage
-----

[](#usage)

### KapitalBank usage

[](#kapitalbank-usage)

- Create order

```
use Ibehbudov\PaymentGateways\Facades\Payment;
use Ibehbudov\PaymentGateways\Vendors\KapitalBank\Requests\CreateOrderRequest;

class PaymentController extends Controller
{
    public function createOrder()
    {
        $payment = Payment::setPaymentMethod(KapitalBank::class);

        $payment->setAmount(13.45);
        $payment->setDescription("Description");
        $payment->setLocale(App::getLocale());
        $payment->setBankRequest(new CreateOrderRequest());
        $payment->getBankRequest()->exceptionWhenFailed(false);

        $payment->execute();

        $orderId = $payment->getOrderId();

        $redirectUrl = $payment->getBankRequest()->getRedirectUrl();

        return $payment->redirectToPaymentPage();
    }
}
```

- Refund

```
$payment = Payment::setPaymentMethod(KapitalBank::class);

$payment->setBankRequest(new RefundOrderRequest(
    orderId: 44516491,
    sessionId: "9FF55469ADFA786A0E082708E4406579",
));

$payment->setAmount(10);
$payment->setLocale(App::getLocale());
$payment->setDescription("Refund");
$payment->getBankRequest()->exceptionWhenFailed(false);

$payment->execute();

if($payment->getBankRequest()->failed()) {
    echo "request is failed: ";
}
else {
    echo "request is success";
}
```

- Callback

```
$payment = Payment::setPaymentMethod(KapitalBank::class);

$payment->callback($request->post('xmlmsg'));

if($payment->isSuccess()) {
    // success code
    echo "success";
}
```

- PreAuth Order

```
$payment = Payment::setPaymentMethod(KapitalBank::class);

$payment->setBankRequest(new PreAuthRequest());
$payment->setAmount(10);
$payment->setDescription("Description text");
$payment->getBankRequest()->exceptionWhenFailed(true);

$payment->execute();

$orderId = $payment->getOrderId();

return $payment->redirectToPaymentPage();
```

- Reverse Order

```
$payment = Payment::setPaymentMethod(KapitalBank::class);

$payment->setBankRequest(new ReverseRequest(
    orderId: 44516491,
    sessionId: "9FF55469ADFA786A0E082708E4406579",
));
$payment->setAmount(10);
$payment->setDescription("Description text");
$payment->getBankRequest()->exceptionWhenFailed(false);
$payment->execute();

if($payment->getBankRequest()->success()) {
    // code
}

if($payment->getBankRequest()->failed()) {
    // code
}
```

### Requests list

[](#requests-list)

- CardRegistrationRequest
- CompletionRequest
- CreateOrderRequest
- CreateOrderWithCardUIDRequest (Not working properly)
- OrderStatusRequest
- PreAuthRequest
- RefundOrderRequest
- ReverseRequest
- TaksitRequest

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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://avatars.githubusercontent.com/u/16236563?v=4)[Ibrahim](/maintainers/ibehbudov)[@ibehbudov](https://github.com/ibehbudov)

---

Top Contributors

[![ibehbudov](https://avatars.githubusercontent.com/u/16236563?v=4)](https://github.com/ibehbudov "ibehbudov (6 commits)")

### Embed Badge

![Health badge](/badges/ibehbudov-payment-gateways/health.svg)

```
[![Health](https://phpackages.com/badges/ibehbudov-payment-gateways/health.svg)](https://phpackages.com/packages/ibehbudov-payment-gateways)
```

###  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)
