Download the PHP package giorgijorji/laravel-tbc-installment without Composer
On this page you can find all versions of the php package giorgijorji/laravel-tbc-installment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download giorgijorji/laravel-tbc-installment
More information about giorgijorji/laravel-tbc-installment
Files in giorgijorji/laravel-tbc-installment
Package laravel-tbc-installment
Short Description TBC installment for laravel
License MIT
Homepage https://github.com/giorgijorji/laravel-tbc-installment
Informations about the package laravel-tbc-installment
Laravel TBC Installment
This package allows you to use TBC Installment in your Laravel application. Package is actively maintained :)
Table of Contents
- Installation
- Getting Access Token
- Environment
- Usage
- Result Codes
- TODO
- Credits
Installation
For Laravel <= 5.4
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.
Then run:
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
After getting apiKey, apiSecret, merchantKey and campaignId place them in .env
.
Set your environment variables:
Usage
Result Codes
status_code | message | Description |
---|---|---|
200 | Ok | Application Confirmed |
401 | Unauthorized | Invalid Token provided for oAuth |
To Add more status
TODO
- unit tests
Credits
- Any suggestions or improvement requests accepted
- Z3R0