Gateway Error Codes

Reference list of error codes returned by the EcobankPay gateway

Common Error Codes

ErrorDescription
GW-001merchant_key missing or empty
GW-002invoice_id missing or empty
GW-003total/amount value missing or empty
GW-009Merchant is deactivated from receiving payments
GW-010Invalid secure_hash value
GW-011Merchant authentication failed
GW-020Transaction already processed
GW-030Payment method not supported
GW-040Transaction timeout
GW-050System error, please contact support

Card Payment Specific Errors

ErrorDescription
CP-001Invalid card number
CP-002Expired card
CP-003Insufficient funds
CP-004Invalid CVV
CP-005Transaction declined by issuer

Mobile Money Specific Errors

ErrorDescription
MM-001Invalid mobile number
MM-002Mobile money account not found
MM-003Insufficient balance
MM-004Transaction limit exceeded
MM-005Mobile money provider unavailable

Handling Error Responses

When an error occurs, the API will return a JSON response with a success field set to false and an error object containing details of what went wrong.

{
  "success": false,
  "error": {
    "code": "GW-001",
    "message": "merchant_key missing or empty"
  }
}

Your application should handle these errors gracefully and provide appropriate feedback to the user.