PHP code example of mdrazamani / asanpardakht-ipg-rest

1. Go to this page and download the library: Download mdrazamani/asanpardakht-ipg-rest library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mdrazamani / asanpardakht-ipg-rest example snippets


$gateway = app('asanpardakht')->init($invoiceId, $amount);
$response = $gateway->token();
$gateway->redirect($response['token']);

$verifyResponse = app('asanpardakht')->verify($transactionId);

$settlementResponse = app('asanpardakht')->settlement($transactionId);
bash
php artisan vendor:publish --provider="mdrazamani\AsanPardakhtIpgRest\AsanPardakhtIpgRestServiceProvider"