1. Go to this page and download the library: Download maatify/pay-tabs 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/ */
maatify / pay-tabs example snippets
use App\Assist\AppFunctions;
use Maatify\PayTabs\PayTabsRedirectUrl;
class PayTabsCartPayUrl extends PayTabsRedirectUrl
{
public function __construct()
{
$this->url = 'https://secure-egypt.paytabs.com/payment/request';
$this->profile_id = 142849;
$this->server_secret_key = __YOUR_SERVER_KEY__;
$this->client_secret_key = __YOUR_CLIENT_KEY__;
$this->currency = 'EGP';
$this->url_callback = __CALLBACK_URL__;
$this->url_return = __RETURN_URL__;
}
}