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.

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 laravel-ipay

iPay integration for Laravel

Packagist Packagist license

Laravel + iPay

📝 iPay documentation can be found here

Table of Contents

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

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

PHP Build Version
Package Version
Requires php Version ^7.2
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
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 zgabievi/laravel-ipay contains the following files

Loading the files please wait ....