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.
This article is dedicated to walking you through how to send user-defined parameters/values
which are parameters that can be passed within the Transaction API request your own "user-defined fields" up to 9 fields, and accordingly, you would receive those fields in the callback response.
->sendUserDefined( [ "udf1"=>"UDF1 Test", "udf2"=>"UDF2 Test", "udf3"=>"UDF3 Test", // ... "udf9"=>"UDF9 Test" ] );
You have up to 9 optional parameters starting from "udf1" to "udf9". by setting any of them, they are expected to be returned within the the callback/IPN. Note that Only the parameter named "udf1" to "udf9" are the accepted as parameters name.
|To pass any needed data within the request, and receive it along with the callback/IPNs|
⌂ 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 2 - Configure the integration method" kindly click here.
⇦ And to get familiar with the rest of the steps regarding the current step "Step 3 - Initiating the payment" click here.
⇨ And to navigate to the next step in the integration process "Step 4 - Accepting the payment" kindly click here.