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.
Download redberry/georgian-card-gateway
More information about redberry/georgian-card-gateway
Files in redberry/georgian-card-gateway
Package georgian-card-gateway
Short Description Simplify your payments with Georgian Card Gateway.
License MIT
Homepage https://github.com/RedberryProducts/georgian-card-gateway
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:
- 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 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.