Error Codes

There are 2 types error codes that are sent from SDK to the application.

One being the error code that is sent from Cashfree's Backend servic. Visit here for details about such error codes.

The other type of error code is the one that are sent by the SDK when required data is not sent to the SDK when initiating the payment. These are thrown as error.

CashfreeError is an Enum that inherits Foundations Error class. The following are some of the error codes that are exposed by the SDK:

ERROR CODESMESSAGE
MISSING_CALLBACKThe callback is missing in the request.
ORDER_ID_MISSINGThe "order_id" is missing in the request.
CARD_EMI_TENURE_MISSINGThe "emi_tenure" is missing or invalid (It has to be greater than 0).
INVALID_UPI_APP_ID_SENTThe 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_SENTThe payment object that is set does not match any payment mode. Please set the correct payment mode and try again.
WALLET_OBJECT_MISSINGThe CFWallet object is missing in the request
NETBANKING_OBJECT_MISSINGThe CFNetbanking object is missing in the request.
UPI_OBJECT_MISSINGThe CFUPI object is missing in the request.
CARD_OBJECT_MISSINGThe CFCard object is missing in the request.
INVALID_WEB_DATAThe url seems to be corrupt. Please reinstantiate the order.
SESSION_OBJECT_MISSINGThe "session" is missing in the request
PAYMENT_OBJECT_MISSINGThe "payment" is missing in the request
ENVIRONMENT_MISSINGThe "environment" is missing in the request.
ORDER_TOKEN_MISSINGThe "order_token" is missing in the request.
CHANNEL_MISSINGThe "channel" is missing in the request.
CARD_NUMBER_MISSINGThe "card_number" is missing in the request.
CARD_EXPIRY_MONTH_MISSINGThe "card_expiry_mm" is missing in the request.
CARD_EXPIRY_YEAR_MISSINGThe "card_expiry_yy" is missing in the request.
CARD_CVV_MISSINGThe "card_cvv" is missing in the request.
UPI_ID_MISSINGThe "upi_id" is missing in the request
WALLET_CHANNEL_MISSINGThe "channel" is missing in the wallet payment request
WALLET_PHONE_MISSINGThe "phone number" is missing in the wallet payment request
NB_BANK_CODE_MISSINGThe "bank_code" is missing in the request

Did this page help you?