Mondia Pay Gateway Errors
In the case of any errors in the response of a request, the response body will always include metadata about that specific error. Whenever an error is returned in the redirect URL, the error metadata is always part of the query parameter.
Below is a table showing all the Errors, HTTPStatus and HTTP Codes that you might receive, along with a Generic Description to help you in mapping the error.
HTTP Status Code | HTTPStatus | Status/Error | Generic Description |
---|---|---|---|
400 | BAD_REQUEST | AMOUNT_NOT_VALID | Invalid Charge Amount |
400 | BAD_REQUEST | INVALID_MSISDN | Invalid msisdn |
400 | BAD_REQUEST | INVALID_PARAMETERS | Invalid Parameters |
400 | BAD_REQUEST | PURCHASE_REQUEST_NOT_VALID | Purchase request not valid (might have been expired) |
400 | BAD_REQUEST | VOUCHER_NOT_VALID | Invalid Voucher |
401 | UNAUTHORIZED | INCORRECT_OTP | Incorrect OTP |
402 | PAYMENT_REQUIRED | INSUFFICIENT_FUNDS | User doesn't have sufficient balance |
403 | FORBIDDEN | AUTHORIZATION_FAILED | Authorization Failed |
403 | FORBIDDEN | EXPIRED_OTP | OTP has expired |
403 | FORBIDDEN | PAYMENT_TEMPORARILY_BLOCKED | User is temporarily blocked from any further payment, most likely because of an existing payment transaction in progress |
403 | FORBIDDEN | PERMISSION_DENIED | Permission denied |
403 | FORBIDDEN | USER_BLOCKED_BY_PROVIDER | User is blocked by provider |
403 | FORBIDDEN | USER_DECLINED_PURCHASE_DURING_CONFIRMATION | User declined purchase during confirmation |
403 | FORBIDDEN | USER_IS_BLACKLISTED | User is blacklisted |
403 | FORBIDDEN | USER_IS_BLOCKED | User is blocked |
403 | FORBIDDEN | USER_NOT_ACTIVE | User not active |
403 | FORBIDDEN | USER_NOT_ELIGIBLE | User not eligible for the service |
404 | NOT_FOUND | NO_SUBSCRIPTION_FOUND | No subscription found for the user {0} for the subscription type id {1} |
404 | NOT_FOUND | SUBSCRIPTION_ATTRIBUTES_NOT_FOUND | Subscription attributes not found |
404 | NOT_FOUND | USER_NOT_FOUND | User not found |
409 | CONFLICT | ALREADY_SUBSCRIBED_IN_SAME_GROUP | User already subscribed in different service under this product |
409 | CONFLICT | SUBSCRIPTION_STATE_NOT_VALID | Subscription {0} has an invalid state {1} |
409 | CONFLICT | USER_ALREADY_SUBSCRIBED | User already subscribed |
409 | CONFLICT | VOUCHER_ALREADY_REDEEMED | Voucher Already Redeemed |
500 | INTERNAL_SERVER_ERROR | CHARGING_ATTEMPT_TECHNICAL_FAILURE | charging attempt failed |
500 | INTERNAL_SERVER_ERROR | PROVIDER_IDENTITY_TYPE_IS_MISSING_FOR_USER | User {0} doesn't have the specified provider identity type {1}. |
500 | INTERNAL_SERVER_ERROR | UNKNOWN_ERROR | Unknown Error |
501 | NOT_IMPLEMENTED | WIFI_AUTHENTICATION_NOT_AVAILABLE | WiFi authentication not available, please switch on mobile network & try again. |
502 | BAD_GATEWAY | CAPPING_LIMIT_EXCEEDED | Capping limit exceeded |
502 | BAD_GATEWAY | PIN_LIMIT_EXCEEDED | Pin limit exceeded |
502 | BAD_GATEWAY | PROVIDER_API_FAILURE | Provider API Failure |
502 | BAD_GATEWAY | PROVIDER_PAYMENT_FAILED | Provider payment failed |
502 | BAD_GATEWAY | GENERIC_FAILURE | Generic Error |
504 | GATEWAY_TIMEOUT | PROVIDER_API_TIMEOUT | Provider API Timeout |
502 | BAD_GATEWAY | PROVIDER_PAYMENT_REJECTED | Provider payment rejected |