Download the PHP package javad/ir-kish without Composer
On this page you can find all versions of the php package javad/ir-kish. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download javad/ir-kish
More information about javad/ir-kish
Files in javad/ir-kish
Informations about the package ir-kish
Laravel Iran Kish payment package
A Laravel package for the Iran Kish (IKC) IPG v3 payment gateway.
پکیج درگاه پرداخت ایران کیش برای لاراول
Requirements
- PHP 8.2 or newer, with the
opensslandjsonextensions - Laravel 12 or 13
Installation
The service provider and the IranKish facade are auto-discovered. Publish the config file:
Then set your terminal credentials in .env:
The callback URL must be on the website registered for your acceptor, and it has to accept
POST requests from the gateway, so exclude it from CSRF verification
(bootstrap/app.php in Laravel 11+):
Usage
Amounts are in Rial.
1. Request a token and send the customer to the gateway
Options can be passed as the third argument:
If you prefer your own view, build the form yourself:
2. Verify the payment in the callback
The purchase must be confirmed after the customer returns, otherwise the gateway reverses it.
Or confirm with the values you already have:
Reverse and inquiry
More than one terminal
Response codes
MJSeydi\iranKish\Support\ResponseCode::message($code) returns the Persian description of any gateway response code.
Upgrading from the untagged dev-master version
- Requires PHP 8.2+ and Laravel 12 or 13. HTTP calls now go through Laravel's HTTP client, so they can be faked with
Http::fake()in your tests. getIranKishToken()andverifyPayment()still exist and return the raw gateway response, but are deprecated in favour ofrequestToken()andverifyCallback()/verify(). They now throwIranKishExceptionwhen the gateway can't be reached or the public key is invalid.- The facade alias is now
IranKish(it was mistakenly registered asCalculator). - Config values can come from
.env, and the config can be published with--tag=irankish-config.
Testing
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
MIT
All versions of ir-kish with dependencies
ext-json Version *
ext-openssl Version *
guzzlehttp/guzzle Version ^7.5
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0