Most probably this error happened due to a typo or wrong transaction type within the payment request.
To get the best out of this article, check first the article What is the "tran_type" (transaction type)?
In this article you will be going to know about:
- How to investigate the reason that caused this error?
- Reason #1: The payment request contains a wrong transaction class
How to investigate the reason that caused this error?
You can investigate the reason for such an error from your Paytabs dashboard,
Developers > API DEBUG LOGS
Also, You can see in the response error message
Reason #1: The payment request contains a wrong transaction Type
This means that the transaction type (tran_type) within your payment request, either is wrong (not valid) or you may have a typo as the above figure.
Make sure to use one of the valid transaction classes within the payment request. For more details about the transaction class parameter kindly check the article Request/Response Parameters | Transaction Type (tran_type)