Skip to main content

Return Response: Response Message (respMessage)

Be Aware Of

This parameter behaving the same regardless of the integration type you are using.


How this parameter could benefit you?​

Here are some scenarios to help you understand when to use the parameter parameter:



Name but a few different Businesses/Industries that can benefit from this API parameter:


When Will You Receive This Parameter?​

cart_id



  • {
    ...
    ....
    }


How it Works?​

In order for you to understand more how the parameter parameter could benefit you, you kindly need to check the below simple steps:



Parameter Specifications​

  • parameter

Request & Response Payloads Samples​

The below sample request payload will show you how you can pass the above-mentioned required parameter, which are needed to be passed with valid values to perform a request. Along with the response payload received after using this request payload.

{
"profile_id": {{profile_id}},
"cart_type": "sale",
"tran_class": "ecom",
"cart_id": "CART#1001",
"cart_description": "Unique order reference00",
"cart_amount": 25000.2,
"cart_currency": "SAR"
]
}


Expected Payment Flow Behavior​

  1. As mentioned above in the How to use? section, As a merchant you would initiate a payment request per the above Specifications, same as the sample codes mentioned in the samples section above.

  2. Then, you will receive a response that includes redirect URL. This means you have initiated a correct payment request/page successfully.

    "redirect_url": "https://secure.paytabs.com/payment/page/599458B182E5B6B********************B4818688",

  3. Next, you should embed this url inside your checkout page directly using the needed mark up tags

  4. After this, your customer would proceed normally with payment by providing his card information, and he will be able to do that withing your story as you can see below:

  5. Then, he will be redirected to his issuer bank 3DS/OTP page to authenticate the used card

  6. Finally, he would be redirect to a success/error page accordingly. By this time, you will be able to see his transaction on your merchant dashboard, whether it's accepted/authorized or not.

    transaction view

    transaction view

We are glad to be always in help. We aim to serve you better each time. As such, please spare a minute to share feedback about your recent experience with PayTabs Developers , on Trustpilot, or Google Reviews.