Most probably this error happened because of passing an invalid email format within the customer_details/shipping_details. 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 email format
This means that the merchant passed an invalid format to the "email" parameter instead of the customer_details/shipping_details. For example, passing integer values or even symbols.
The email format MUST be string.