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.
valU is the most powerful application in Egypt through which you can pay in more than 3,500 places and online. You can also gift it to anyone through To-U, the first e-gift card in Egypt.
It provides customers with an easier, more convenient, and faster approval process to buy everything they need and pay in installments over the period that suits them from six months to 60 months without a down payment and interest-free offers throughout the year.
Note ValU and all of our APMs are available ONLY via our hosted payment page
In this article you will be going to know about:
- The Endpoint and Related Postman Collection
- ValU Payment workflow
- The Minimum Required Parameters
- The Available Optional Parameters
- The Request payload
- The Response payload
- The Callback response payload
The Endpoint and Related Postman Collection
In this tutorial, we will rely on the API Endpoint, mentioned on the PayTabs API endpoints postman collection, which you can access from here. The endpoint will need to be accessed with a POST request on the below-mentioned URL
Post | {{domain}}/payment/request |
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.
ValU Payment workflow
- Create a payment page for ValU.
- The customers will see a screen asking them to add their ValU phone number.
- After clicking on 'Pay Now', they will be taken to a screen where they can add the down payment/ToU/cashback values and choose the installment plan.
- The customer should then add the OTP and click 'Submit' to confirm the payment.
Note that you can manage ValU settings (down payment, ToU, and cashback) through your dashboard in the 'Developers' tab, as shown below.
The Minimum Required Parameters
To initiate a payment request using this integration type, there are minimum required parameters that need to be passed with valid information. The specification of these required parameters is clarified below.
Parameter | Required | Purpose |
✔ | The merchant Profile ID you can get from your PayTavs 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. | |
✔ | The identification of the type of transaction. To know more about these types please check our What is the "tran_type" (transaction type)? solution article.
To know more about this parameter please click here. | |
✔ | The identification of the category/class this transaction will follow, such as eCommerce, Recurring, etc. To know more about these types please check our What is the "tran_class" (transaction class)? solution article For this request, the transaction class MUST be "ecom". To know more about this parameter please click here. | |
✔ | Indicates the cart/order id at the merchant end to easily relate the transaction to To know more about this parameter please click here. | |
✔ | Indicates the cart/order description at the merchant end to easily relate the transaction to To know more about this parameter please click here. | |
✔ | Indicates the transaction currency, which the customer will be charged with To know more about this parameter please click here. | |
✔ | Indicates the amount the customer is about to be charged. To know more about this parameter please click here. |
Now, In order to create a payment request through valu, you need - in addition to the above general required parameters - to pass valu within the payment_methods parameter. Find below the Additional required parameters for valu:
Parameter | Required | Purpose |
✔ If you need to initiate the payment page for ValU | To initiate the payment page with one or more specific payment methods, which should be configured first in your profile. To know more about this parameter please click here. For this request, you MUST pass "valu". |
The Available Optional Parameters
Besides the above-mentioned required parameters, PayTabs provides you with several optional parameters, as same as the parameters of the hosted payment page, check it here.
The Request payload
As the payment page is on your side (merchant side), you must send a payment request using the transaction API after receiving the card details from your payment page. You will need to include the customer details in the payment request.
Note that the minimum amount to initiate a payment via ValU is 500 EGP.
The Response payload
Once the request is validated and initiated, you will receive the following response.
The Callback response payload
Once the customer has paid, you will receive the following as a POST request to the configured IPN.
To know more about managing IPNs please check our How to configure Instant payment notification (IPN)? solution article.