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
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 OfThis 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
, andRegion
in the PayTabs configuration array file located at "config/PayTabs.php".Be Aware OfFor more information about how to get your integration keys from your dashboard, got to the Integration keys and details..
Integration keys and detailsβ
Parameter |
| |||
---|---|---|---|---|
Description | The 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 Type | INT | |||
Required | β | |||
Validation Rules | Accept only valid profile number. | |||
Sample |
|
authorization
with filter serverKey
.No parameters found for manual authorization
with filter region
.No parameters found for manual authorization
with filter currency
.