PHPackages                             tarlanpayment/payments - 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. tarlanpayment/payments

ActiveLibrary[Payment Processing](/categories/payments)

tarlanpayment/payments
======================

payment gateway

113PHP

Since Oct 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tarlanpayment/php-client)[ Packagist](https://packagist.org/packages/tarlanpayment/payments)[ RSS](/packages/tarlanpayment-payments/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Tarlan Payment Gateway
======================

[](#tarlan-payment-gateway)

Платежный сервис для приема платежей
================================================================

[](#платежный-сервис-для-приема-платежей-httpstarlanpaymentskz)

Payment package tarlanpayments api for laravel 5.2 - 5.8

Install
-------

[](#install)

```
composer require tarlanpayments/payments

```

For laravel 5.8
---------------

[](#for-laravel-58)

### Service provider to config/app.php

[](#service-provider-to-configappphp)

```
  TarlanPayments\Payments\PaymentServiceProvider::class

```

### Facade

[](#facade)

```
'TarlanPay' => \TarlanPayments\Payments\Facades\TarlanPay::class

```

Publish config file
-------------------

[](#publish-config-file)

```
  php artisan vendor:publish

```

TarlanPay requests
------------------

[](#tarlanpay-requests)

### Invoice create example

[](#invoice-create-example)

```
$pay =  TarlanPay::paymentCreate([
              'secret_key' => reference_id+secret_key,
              'merchant_id' => '4'
              'reference_id' => '11111111',
              'request_url' => 'your-site.kz',
              'back_url' => 'your-site.kz',
              'amount' => 9999,
              'user_id' => 'your-email@gmail.com',
        ]);

$pay->generateUrl();
```

### Payment status check example

[](#payment-status-check-example)

```
$checkPay = TarlanPay::paymentStatus( [ 'reference_id' => '11111111' ] );

$response = TaralanPay::request( $checkPay->generateUrl() );
```

Epay responses
--------------

[](#epay-responses)

### Payment Create BACK\_LINK response handling example

[](#payment-create-back_link-response-handling-example)

```
 $jsonResponse = request('json');

        if($jsonResponse)
        {
            $payResponse = TarlanPay::handlePaymentCreate($jsonResponse);

            Log::info( 'transaction_id='.$payResponse->getTransactionId() );
            Log::info( 'status='.$payResponse->getStatus() );
            Log::info( 'reference_id='.$payResponse->getReferenceId() );
        }
```

### Payment Status response handling example

[](#payment-status-response-handling-example)

```
$obj = TarlanPay::paymentStatus( request()->all() );
       $response = TarlanPay::request( $obj->generateUrl() );

       if($response) {
           $checkPaymentResponse = TarlanPay::handlePaymentStatusResponse( $response );
           dd($checkPaymentResponse->getData());

           Log::info('status='.$checkPaymentResponse->getData());
           Log::info('message='.$checkPaymentResponse->getMessage());
           Log::info('data='.$checkPaymentResponse->getData());
           Log::info('error_code='.$checkPaymentResponse->getErrorCode());
       }

Payment status:
    const STATUS_NEW = 0;
    const STATUS_OK = 1;
    const STATUS_PROCESS = 2;
    const STATUS_AUTHORIZED = 3;
    const STATUS_CANCELED = 4;
    const STATUS_REFUND = 5;
    const STATUS_FAILED = 6;
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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/628dfc16c5173a95d95c4e04b65746fc6dd0d386a37d5dc1d8bc4017d6cb0edc?d=identicon)[nomikz](/maintainers/nomikz)

### Embed Badge

![Health badge](/badges/tarlanpayment-payments/health.svg)

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

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