Error Codes
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:
ERROR CODES | MESSAGE |
---|---|
MISSING_CALLBACK | The callback is missing in the request. |
ORDER_ID_MISSING | The "order_id" is missing in the request. |
CARD_EMI_TENURE_MISSING | The "emi_tenure" is missing or invalid (It has to be greater than 0). |
INVALID_UPI_APP_ID_SENT | The id sent is invalid. The value has to be one of the following: "tez://","phonepe://","paytm://","bhim://. Please refer the note in CFUPI class for more details |
INVALID_PAYMENT_OBJECT_SENT | The payment object that is set does not match any payment mode. Please set the correct payment mode and try again. |
WALLET_OBJECT_MISSING | The CFWallet object is missing in the request |
NETBANKING_OBJECT_MISSING | The CFNetbanking object is missing in the request. |
UPI_OBJECT_MISSING | The CFUPI object is missing in the request. |
CARD_OBJECT_MISSING | The CFCard object is missing in the request. |
INVALID_WEB_DATA | The url seems to be corrupt. Please reinstantiate the order. |
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. |
CHANNEL_MISSING | The "channel" is missing in the request. |
CARD_NUMBER_MISSING | The "card_number" is missing in the request. |
CARD_EXPIRY_MONTH_MISSING | The "card_expiry_mm" is missing in the request. |
CARD_EXPIRY_YEAR_MISSING | The "card_expiry_yy" is missing in the request. |
CARD_CVV_MISSING | The "card_cvv" is missing in the request. |
UPI_ID_MISSING | The "upi_id" is missing in the request |
WALLET_CHANNEL_MISSING | The "channel" is missing in the wallet payment request |
WALLET_PHONE_MISSING | The "phone number" is missing in the wallet payment request |
NB_BANK_CODE_MISSING | The "bank_code" is missing in the request |
WRONG_CALLING_CONTEXT | Calling context must be activity or fragment |
NO_UPI_APP_AVAILABLE | You don't have any UPI apps installed or ready for payment. |
NO_EMI_PLAN_AVAILABLE | This account does not have EMI plans configured, or the order amount is less than 2499 |
Subscribe to Developer Updates
Updated 3 months ago