PHPackages                             redberry/georgian-card-gateway - 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. redberry/georgian-card-gateway

ActiveLibrary[Payment Processing](/categories/payments)

redberry/georgian-card-gateway
==============================

Simplify your payments with Georgian Card Gateway.

v1.0.2(5y ago)01MITPHP

Since May 22Pushed 5y agoCompare

[ Source](https://github.com/RedberryProducts/georgian-card-gateway)[ Packagist](https://packagist.org/packages/redberry/georgian-card-gateway)[ Docs](https://github.com/RedberryProducts/georgian-card-gateway)[ RSS](/packages/redberry-georgian-card-gateway/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (3)Used By (0)

Georgian Card Gateway
=====================

[](#georgian-card-gateway)

Georgian Card Gateway is easy to use package. it takes a lot of work off your back.

With this package you can make:

- regular payments ( requiring input of user's credit card information on each transaction)
- recurrent payments (basically with this method you can save user's credit card into merchant and then make payments without asking user credit card info every time. )

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

[](#installation)

Installation is fairly simple:

```
$ composer require redberry/georgian-card-gateway
```

Set Up
------

[](#set-up)

---

### 1. env

[](#1-env)

you have to enter necessary credentials for your merchant in the enviroment variables file.

```
MERCHANT_ID=---YOUR-MERCHANT-ID---
PAGE_ID=---YOUR-PAGE-ID---
ACCOUNT_ID=---YOUR-ACCOUNT-ID---
CCY=---YOUR-CURRENCY-CODE---
REFUND_API_PASS=---YOUR-REFUND-API-PASSWORD---
BACK_URL_S=https://your-website.ge/payment/succeed
BACK_URL_F=https://your-website.ge/payment/failed
```

###### MERCHANT\_ID

[](#merchant_id)

Represents your merchant's identificator, which will be given to you from BOG.

###### PAGE\_ID

[](#page_id)

Represents the identificator of the payments page, which can be customized and styled with your preferences.

###### ACCOUNT\_ID

[](#account_id)

On merchant there can be meny pos terminals. And on each terminal there will be account, on which the payments will be directed. Most likely you will need only one terminal. But in this doc we will also see how can we manage payments on multiple terminals.

###### CCY

[](#ccy)

Represents in which currency transaction should happen. you will most probably use 981 which represents Lari. [see more](https://en.wikipedia.org/wiki/ISO_4217)

###### REFUND\_API\_PASS

[](#refund_api_pass)

Represents password for making refunds of your transactions.

###### BACK\_URL\_S

[](#back_url_s)

The url which will be visited after successfull transaction. for example:

###### BACK\_URL\_F

[](#back_url_f)

The url which will be visited after failed transaction. for example:

### 2. vendor publish

[](#2-vendor-publish)

```
php artisan vendor:publish --provider="Redberry\GeorgianCardGateway\Support\ServiceProvider"
```

### 3. bind georgian card handler

[](#3-bind-georgian-card-handler)

For you to be able to make transaction records in database, make reccurent transaction or do something on failed/success ending, it's nessessary to create class for Georgian card and bind it into container.

So... let's create class, which will have path: "app/Library/GeorgianCard.php" and will implement GeorgianCardHandler interface:

```
