Skip to main content

Step 2 - Configure the integration method

PayTabs provides you with the backend packages that make the integrating with PayTabs payment gateway very easy by providing ready-made classes that handle the payment process.

After you have set up our Laravel 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:

Configure the integration​

  • 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
    publish package config file

  • 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',
    ],
    Be Aware Of

    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.


  • 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".

    Be Aware Of

    For more information about how to get your integration keys from your dashboard, got to the Integration keys and details..



Integration keys and details​

Parameter
profile_id
DescriptionThe merchant Profile ID you can get from your PayTabs dashboard. For more information please check our How to get your account information from PT2 Dashboard? solution article. To know more about this parameter please click here.
Data TypeINT
Requiredβœ”
Validation RulesAccept only valid profile number.
Sample
{
"profile_id": 987654
}
No parameters found for manual authorization with filter serverKey.No parameters found for manual authorization with filter region.No parameters found for manual authorization with filter currency.

We are glad to be always in help. We aim to serve you better each time. As such, please spare a minute to share feedback about your recent experience with PayTabs Developers , on Trustpilot, or Google Reviews.