Download the PHP package netramz/parsianipg without Composer
On this page you can find all versions of the php package netramz/parsianipg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package parsianipg
ParsianIPG
Internet Payment Gateway Library for Parsian bank (Iran Banking System)
Install Using Composer
composer require netramz/parsianipg
Usage
use Netramz\ParsianIPG\ParsianIPG;
$IPG = new ParsianIPG('MERCHANTID');
Payment Request
$paymentRequest = $IPG->paymentRequest($Amount, $OrderId, $CallBackUrl);
if ($paymentRequest->Status == 'success') {
echo 'https://pec.shaparak.ir/NewIPG/?Token='.$paymentRequest->token;
}else{
//error
}
Confirm Payment
$confirmPayment = $IPG->confirmPayment($token);
if ($confirmPayment->Status == 'success') {
$Data = [
"status" => $paymentRequest->Status,
"message" => $paymentRequest->message,
"CardNumberMasked" => $paymentRequest->CardNumberMasked,
"RRN" => $paymentRequest->RRN,
];
}else{
//error
}
All versions of parsianipg with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package netramz/parsianipg contains the following files
Loading the files please wait ....