PayTabs Node.js 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 manage what is the payment page display language. The following string values can be passed within the "language" parameter, which is passed as the seventh parameter to the "createPaymentPage" function, as shown below:

  • en
  • ar


Through out the article we will use the same concepet clarified in our How to change payment page language? solution article.


let langugae= "ar";

paytabs.createPaymentPage(
paymentMethods,
transaction_details,
cart_details,
customer_details,
shipping_address,
response_URLs,
langugae, // string expected
paymentPageCreated
);


The client's browser default language is the default value of this function. In other words, not passing this paramter at all will display the payment page in the default language of the client's browser if it was one of the above values or in "en" if no


 




⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The Node.js 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.