PHPackages                             giorgijorji/laravel-tbc-installment - 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. giorgijorji/laravel-tbc-installment

ActiveLibrary

giorgijorji/laravel-tbc-installment
===================================

TBC installment for laravel

2.0.2(1y ago)489↓100%1MITPHPPHP ^7.1 || ^8.0

Since Oct 31Pushed 1y ago1 watchersCompare

[ Source](https://github.com/giorgijorji/laravel-tbc-installment)[ Packagist](https://packagist.org/packages/giorgijorji/laravel-tbc-installment)[ Docs](https://github.com/giorgijorji/laravel-tbc-installment)[ RSS](/packages/giorgijorji-laravel-tbc-installment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

Laravel TBC Installment
=======================

[](#laravel-tbc-installment)

[![Latest Stable Version](https://camo.githubusercontent.com/931745c38f3491098cdafd5c0daa1238a4155600ae4b526ea173a12f7d22561d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67696f7267696a6f726a692f6c61726176656c2d7462632d696e7374616c6c6d656e742e737667)](https://packagist.org/packages/giorgijorji/laravel-tbc-installment)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/f926e3f663ae7b85bb2587ebf0cf1552835de231d374dd97a651d8a4b1e8c386/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67696f7267696a6f726a692f6c61726176656c2d7462632d696e7374616c6c6d656e742e737667)](https://packagist.org/packages/giorgijorji/laravel-tbc-installment)[![Downloads Month](https://camo.githubusercontent.com/d0fcc882d4e299622f8df0ccb114b883503dcaaa0d0f288a4ce6e2d723af6246/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f67696f7267696a6f726a692f6c61726176656c2d7462632d696e7374616c6c6d656e742e737667)](https://packagist.org/packages/giorgijorji/laravel-tbc-installment)

This package allows you to use TBC Installment in your Laravel application. Package is actively maintained :)

[![Laravel TbcPay](giorgijorji-laravel-tbc-installment.png)](giorgijorji-laravel-tbc-installment.png)

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Getting Access Token](#getting-access-token)
- [Environment](#environment)
- [Usage](#usage)
- [Result Codes](#result-codes)
- [TODO](#todo)
- [Credits](#credits)

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

[](#installation)

```
composer require giorgijorji/laravel-tbc-installment

```

#### For Laravel &lt;= 5.4

[](#for-laravel--54)

If you're using Laravel 5.4 or lower, you have to manually add a service provider in your `config/app.php` file. Open `config/app.php` and add `TbcPayServiceProvider` to the `providers` array.

```
'providers' => [
    # Other providers
    Giorgijorji\LaravelTbcInstallment\TbcInstallmentServiceProvider::class,
],
```

Then run:

```
php artisan vendor:publish --provider="Giorgijorji\LaravelTbcInstallment\TbcInstallmentServiceProvider"

```

Getting Access Token
--------------------

[](#getting-access-token)

In order to access Online Installment endpoints, merchant application should request access token with Oauth2 Client Credential flow. apiKey and apiSecret values should be passed as client\_id and client\_secret. This operation is used to verify registered developer app and grant general access to the Open API platform. To get your apiKey and apiSecret, follow instructions at developers.tbcbank.ge/get-started

Environment
-----------

[](#environment)

After getting apiKey, apiSecret, merchantKey and campaignId place them in `.env`.

Set your environment variables:

```
TBC_ENVIRONMENT=testing
TBC_INSTALLMENT_API_KEY=your_api_key
TBC_INSTALLMENT_API_SECRET=your_api_secret
TBC_INSTALLMENT_MERCHANT_KEY=your_merchant_key
TBC_INSTALLMENT_CAMPAIGN_ID=your_campaing_id

```

Usage
-----

[](#usage)

```
