PayTabs Laravel Package makes integration with the PayTabs payment gateway very easy by providing a ready-made payment class that handles the card entry, and billing & shipping information and completes the missing details.

After you have set up our package successfully, as clarified in the last step (Step 1 - Laravel Package | Setup and activate the integration method), you can now manage your integration configuration to start using our package easily in any further steps. Kindly check the below steps that will walk you through how to configure the package:

  1. First thing, you will need to generate the package config file by running the below command inside your Laravel project command line:

    php artisan vendor:publish --tag=paytabs

  2. Then, to generate the Paytabs log file, which will be essential in troubleshooting any issue, navigate to the “config/logging.php” file, and amend the channel’s array with the below:

    'PayTabs' => [  
    'driver' => 'single',
    'path' => storage_path('logs/paytabs.log'),
    'level' => 'info',

    This is a MUST step to empower your team and the Paytabs technical support team to troubleshooting any issue if any technical assistance is needed.

  3. After that, you will need to provide your "Profile ID", "Server Key" and "Currency" in the PayTabs configuration array file located at "config/paytabs.php". 

    For more information about how to get your integration keys from your dashboard, please click here.

    You can pass those information in the environment file (.env) with the same key names mentioned in the “config/paytabs.php” file.  
    This value will be returned if no environment variable exists for the given key. 


Here you are, done with configuring the PayTabs Laravel package. And now you can go on the ground with your business using the preferred payment methods.

⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The Laravel Packge Integration Manual" solution article. 

And to get familiar with the rest of the steps regarding the previous step "Step 1 - Setup and activate the integration method" click here

 And to navigate to the next step in the integration process "Step 2 - Initiating the payment" kindly click here.