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 the business aspect of on which PayTabs' mechanisms this package built to accept the payment that you already initiated in the previous step (Step 3 - Node.js Package | Initiating the payment).

Accepting any payments will be categorized into two phases:

Phase I - The Type of the Payment

This phase would be already handled technically in the second step (Step 2 - Configure the integration method)

  • There are three main transaction types provided by PayTabs, which are "Sale", "Auth", and "Refund", and two transaction classes which are "Ecom" and "Recurring". All of them are supported except the "Recurring" transaction class, which is not supported to be handled/managed via this package. 

    You will need just to pass the with either sale or auth value as shown in the below example:

    let transaction = {
    let transaction_details = [

    To know more about the how to manage the Transaction Type of the payments, please check our 3.2 Node.js Package | Manage the Transaction Details solution article.

    Till we support handlign recurring via this package you can use our PT2 API Endpoints direct within your code to perform it. To know more about recurrinf endpoint please check our Token Based Transactions (Recurring) solution articles.

Phase II - How are you going to accept/handle customers' card details?

This phase would be already handled technically in the third step (Step 3 - Initiating the payment)

In our Packages, we follow our mechanism called "Hosted Payment Page", which implies that payments will be performed within our servers by redirecting the customers to our hosted side payment page.

Other mechanisms, such as Own Form and Managed Form, are not supported within the package, yet it can be performed through direct APIs.

⌂ 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 previuos step "Step 3 - Initiating the payment" click here

 And to navigate to the next step in the integration process "Step 5 - Handle the payment response" kindly click here.