PHP code example of ittech / laravel-payme

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

    

ittech / laravel-payme example snippets


return [
    'proxy_url' => env('PAYME_PROXY_URL', ''),
    'proxy_proto' => env('PAYME_PROXY_PROTO', ''),
    'proxy_host' => env('PAYME_PROXY_HOST', ''),
    'proxy_port' => env('PAYME_PROXY_PORT', ''),
    'base_url' => env('PAYME_BASE_URL', 'https://checkout.paycom.uz'),
    'merchant_id' => env('PAYME_MERCHANT_ID', ''),
    'key' => env('PAYME_KEY', ''),
];

$payme = new Ittech\Payme();
echo $payme->echoPhrase('Hello, Ittech!');
bash
php artisan vendor:publish --tag="laravel-payme-config"