Paytabs provides you with a collection of API endpoints which used to process all payments, regardless of if they are through either your own payment pages, the managed payment pages, or if you are using the hosted payment pages.



After you have learned the setup and installation steps for the Managed Form , as clarified in the last step (Step 1 - Setup and activate the integration method), 
you can now manage your integration configuration to start using our PT2 API endpoints in any further steps. Kindly check the below steps that will walk you through the configuration you need:




  1. The first thing you will need to provide the proper endpoint URL to your request, as shown below:
    curl --location --request POST 'https://secure.paytabs.com/payment/request' \
    PHP


    Please note that not using the proper endpoint URI {{domain}} will lead to authentication issues within your responses. To find the your proper domain you can read our What Is My (Region)/(endpoint URL)? solution article.





  2. Then you will need to provide your API server key.
    curl --location --request POST 'https://secure.paytabs.com/payment/request' \
    --header 'authorization: SJ******MD-J2******L6-99******DZ' \
    PHP


    To know how to find your API server key we recommend you to check our solution article How to get my Authentication/integration/API Keys?






  3. Finally, you will need to provide your profile_id within the required parameters that should be sent in the request payload.
    {
    profile_id => 2342,
    }
    HTML


    To know how to find your profile_id we recommend you check our solution article How to get your account information from PT2 dashboard?


    In order to understand the types of PayTabs merchant profiles, we highly reccomend you to check our solution article What is test profile vs live profile?



Here you are, done with configuring the PayTabs API endpoints. And now you can go on the ground with your business using the preferred payment methods.









⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The PT2 API Endpoints Integration Manual" solution article. 

 And to navigate to the next step in the integration process "Step 3 - Initiating the payment" kindly click here.