There are types of error codes that is sent from SDK to the application. One being the error code that is sent from Cashfree's Backend service when order initiation fails. Visit here for details about such error codes.
The other type of error codes are the ones that are exposed by the SDK when required data is not sent to the SDK when initiating the payment. These are thrown as error.
The following are some of the error codes that are exposed by the SDK:
|MISSING_CALLBACK||The callback is missing in the request.|
|ORDER_ID_MISSING||The "order_id" is missing in the request.|
|SESSION_OBJECT_MISSING||The "session" is missing in the request|
|PAYMENT_OBJECT_MISSING||The "payment" is missing in the request|
|ENVIRONMENT_MISSING||The "environment" is missing in the request.|
|ORDER_TOKEN_MISSING||The "order_token" is missing in the request.|
Updated 3 months ago