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. 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", "Currency", and "Region " 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.




    Profile ID


    The Parameter Tag/NameprofileID
    Data TypeSTRING  
    Purpose
    Indicates the profile of the merchant associated to this call. To know how to get yours from your PayTabs dashboard please check our How to get your account information from PT2 Dashboard?  solution article.
    Validation Rules
    Accept only valid profile number
    Required




    Server Key


    The Parameter Tag/NameserverKey
    Data TypeSTRING  
    Purpose
    The merchant profile's server key which used for authentication purposes. You can get it from your dashboard. To know more about how, please check our How to get my Authentication/Integration/API Keys? solution article.
    Validation Rules
    Accept only valid server key
    Required




    Region 


    The Parameter Tag/Nameregion
    Data TypeSTRING  
    Purpose
    Indicates the merchant account's country. It must be related to the profile used in the integration. Please check our What is my (Region)/(endpoint URL)? solution article.
     Validation Rules
    - Must be in ISO alpha-2 format.
    - Accept only one value from the below:
    ARE => United Arab Emirates
    
    SAU => Saudi Arabia
    
    OMN => Oman 
    
    JOR => Jordan
    
    EGY => Egypt
    
    GLOBAL => Global
    Required



     
    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.