Most probably this error happened because of passing an invalid cart_description format. For example, passing integer id instead of a string.
In this article you will be going to know about:
How to investigate the reason that caused this error?
You can investigate the reason for such an error from the "API debug log" by following the below steps:
- Navigating to the Developer’s menu > Testing > API Debug Logs (within your desired profile).
- Then you can navigate to the request payload sent from your side from the icon ? (view request body) in the API debug logs.
Or you may get the error directly from the response payload sent from PayTabs according to your sent request
Reason #1: Invalid cart_description format
This means that you passed an invalid format to the "cart_description" parameter. For example, passing integer values.
The cart_description format MUST be string