PHP code example of alive2212 / laravel-parsian-payment

1. Go to this page and download the library: Download alive2212/laravel-parsian-payment 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/ */

    

alive2212 / laravel-parsian-payment example snippets


'providers'=>[
    ...

    /*
     *  add parsian payment service provider
     */
    Alive2212\LaravelParsianPayment\LaravelParsianPaymentServiceProvider::class,
    
    ...
]

LaravelParsianPayment::routes(null,['middleware'=>'web']);

LaravelParsianPayment::routes();
 artisan route:list
 bash
php artisan vendor:publish --tag laravel-parsian-payment.config
php artisan vendor:publish --tag laravel-parsian-payment.lang
php artisan vendor:publish --tag laravel-parsian-payment.job
php artisan parsian_payment:init