Download the PHP package redberry/georgian-card-gateway without Composer

On this page you can find all versions of the php package redberry/georgian-card-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package 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:

Installation

Installation is fairly simple:

Set Up


1. env

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

MERCHANT_ID

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

PAGE_ID

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

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

Represents in which currency transaction should happen. you will most probably use 981 which represents Lari. see more

REFUND_API_PASS

Represents password for making refunds of your transactions.

BACK_URL_S

The url which will be visited after successfull transaction. for example: https://your-web-site.ge/payments/success

BACK_URL_F

The url which will be visited after failed transaction. for example: https://your-web-site.ge/payments/success

2. vendor publish

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:

Now bind it into our app service provider:

Now you can make simple regular transaction


All this fields that we set when making new instance of Transaction, will be available for us to see with bunch of other BOG info, when our GeorgianCard -> update() method will be executed. and in that moment you can save db records and so on...

Making refund of the transaction


TrxId and RRN

TrxId and RRNs are transaction ids, which will be given to you in the GeorgianCard -> update method, you have to save it in DB and then use it to make refund of that transaction.


All versions of georgian-card-gateway with dependencies

PHP Build Version
Package Version
Requires giunashvili/xml-parser Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package redberry/georgian-card-gateway contains the following files

Loading the files please wait ....