1. Go to this page and download the library: Download turown/laravel-paytr 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/ */
turown / laravel-paytr example snippets
$config = new Config();
$config->setMerchantId(00000)
->setMerchantKey("XXXXX")
->setMerchantSalt("XXXX")
->setApiType(2) // iFrame Type
->setApiUrl(ENV('PAYTR_API_URL') . 'odeme/api/get-token');