Chapa Exception

Error NameError CodeDescription
CHAPA_ERROR400chapa payment api error
UNSUPPORTED_DATA_TYPE422passing unsupported data type in ItemPayment
CHAPA_NOT_INITIALIZED433Chapa Configuration not initialize by Chapa.init(chapaConfig)
INVALID_CHAPA_CHECKOUT_URL422Url is not valid chapa checkout url
INTERNAL_ERROR500Internal exception occurred
CONNECTIVITY_PROBLEM599Internet connection problem or no internet
INVALID_DATA600When ChapaConfiguration is null
INVALID_CUSTOMER_DATA601Invalid customer information
INVALID_CALLBACK_URL602Callback url is not valid url
INVALID_CHAPA_KEY603Chapa public key is null or Empty
INVALID_CURRENCY604Unsupported Currency type
INVALID_TX_REF605When it not alphanumeric characters between 6 and 100
INVALID_AMOUNT606When the amount is less than 1
TEST_KEY_IN_PRODUCTION607When using chapa test key in android release build
INITIALIZE_ON_APP_MAIN_ACTIVITY700Initialize Chapa on AppMainActivity class that already have AppPayment
PHONE_ID_MISMATCH701Device id is mismatched when initialize AppPayment