Download the PHP package zgabievi/laravel-ipay without Composer
On this page you can find all versions of the php package zgabievi/laravel-ipay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-ipay
iPay integration for Laravel

📝 iPay documentation can be found here
Table of Contents
- Installation
- Usage
- ENV Variables
- License
Installation
To get started, you need to install package:
If your Laravel version is older than 5.5, then add this to your service providers in config/app.php:
You can publish config file using this command:
This command will copy config file for you.
Usage
All of the responses are stdClasses. Errors are handled by laravel abort helper. Catch exceptions on your own, if you want to handle them.
Here are methods provided by this package:
- Payment Process - Initialization of payment process
- Generate Token - (Optional) Token will be auto generated if not provided
- Checkout - Request checkout order to iPay
- Redirect - Redirect user to url that was provided by checkout
- Recurring - Repeat payment process using saved order id
- Refund - Reversal of transaction
- Order Details - Check details of order
- Order Status - Check status of order
- Payment Details - Check details of payment
- Complete Pre-Authentication - Complete pre-authorized order
- Helpers - Helper methods to generate checkout
- Purchase Unit - Helper to generate object for purchase unit
- Purchase Item - Helper to generate object for purchase item
Payment Process
Generate Token
This step is optional, and if you don't provide token to next request, it will automatically fetch token.
Example $response:
Checkout
Generate order in iPay system and get back order details and redirect urls.
You can set parameters separately:
Example $response
:
Redirect
Redirect to payment page which is provided by checkout method.
You can set parameters separately:
Redirect method will find redirect link for payment and redirect user to that page.
Recurring
Recurring process is the same as checkout process. You just have to provide transaction id you want to be used for recurring.
You can set parameters separately:
Refund
In order to refund money you need to have order_id of payment.
You can set parameters separately:
If response is OK, it means refund process was successful.
Order Details
In order to get order details you need to have order_id of payment.
You can set parameters separately:
Example $response
:
Order Status
In order to get order status you need to have order_id of payment.
You can set parameters separately:
Example $response
:
Payment Details
In order to get payment details you need to have order_id of payment.
You can set parameters separately:
Example $response
:
Complete Pre-Authentication
In order to get complete pre-authorized order you need to have order_id of payment.
You can set parameters separately:
All helper methods to set parameters separately
Method | Description | Possible values | Default | Used in |
---|---|---|---|---|
setResponse | Response from other iPay request | - | - | redirect, redirectUrl |
setRel | Rel to point correct link from response | approve, self | approve | redirect, redirectUrl |
setAmount | Money amount in cents (tetris) | - | - | purchaseUnit, purchaseItem, refund |
setCurrency | Currency of the amount | GEL, USD, EUR | GEL | purchaseUnit |
setIndustryType | Industry type of purchase unit | ECOMMERCE | ECOMMERCE | purchaseUnit |
setProduct | Your product id | - | - | purchaseItem |
setQuantity | Quantity of purchase item | - | - | purchaseItem |
setDescription | Description of purchase item | - | - | purchaseItem |
setTransaction | Transaction id for recurring | - | - | checkout, repeat |
setIntent | Intent for payment | CAPTURE, AUTHORIZE, LOAN | CAPTURE | checkout, repeat |
setShopOrder | Your order id | - | - | checkout, repeat |
setPurchaseUnits | One purchase unit as an array | - | - | checkout, repeat |
setItems | List of items of purchase | - | - | checkout, repeat |
setToken | JWT Token from iPay | - | - | checkout, repeat, refund, orderDetails, orderStatus, paymentDetails, completePreAuth |
setCaptureMethod | Method for checkout | AUTOMATIC, MANUAL | AUTOMATIC | checkout, repeat |
setOrder | Order id from iPay responses | - | - | refund, orderDetails, orderStatus, paymentDetails, completePreAuth |
Environment Variables
Key | Meaning | Type | Default |
---|---|---|---|
IPAY_DEBUG | This value decides to log or not to log requests | bool | false |
IPAY_URL | Payment url from Bank of Georgia | string | https://ipay.ge/opay/api/v1 |
IPAY_REDIRECT_URL | Callback url where will be redirected after a success/failure payment | string | https://website.com/payments/redirect |
IPAY_CLIENT_ID | Client ID provided by Bank of Georgia | string | |
IPAY_LANGUAGE | Default language for Bank of Georgia payment | string | ka |
IPAY_SECRET_KEY | Secret key provided by Bank of Georgia | string |
License
zgabievi/laravel-ipay is licensed under a MIT License.
All versions of laravel-ipay with dependencies
illuminate/config Version ^6.0|^7.0|^8.0
illuminate/database Version ^6.0|^7.0|^8.0
illuminate/support Version ^6.0|^7.0|^8.0
bensampo/laravel-enum Version ^1.38|^3.1