Skip to main content

Handling Errors and Declines

For most situations you will encounter a handful of error and success codes including 200, 401, 404, 400 and 500. The most common responses will be:

  • 200: Operation was successful

  • 4xx: Operation failed (In the case of payments, a 4xx status code means the payment was not processed)

Note: Due to PCI regulations error messages may often be intentionally ambiguous. Please contact us if you wish to discuss your error messages, or see our list of common errors.

Errors in the payment forms can be handled by adding an event listener to the window.

Example

window.addEventListener('message', function messageListener(event) {
if (event.origin === iframeDomain) {
if (event.data.event === 'error' || event.data.event === 'success' || event.data.event === 'processed') {
// handle success or error messages
}
if (event.data.event === 'loaded') {
//handle form loaded state
}
if (event.data.event === 'cardSaved') {
//handle cardSaved
}
console.log(event.data.event);
}
});

Common Errors

ErrorDescription {style="width:50%"}Status Code
404The requested item is not found404
404Merchant not found or invalid merchant configuration404
409No merchants enabled for processing on this account for selected currency409
431Kount has identified a possible risk with the transaction400
432Invalid currency400
433Invalid gateway400
434Invalid TokenEx configuration400
435Unable to process with gateway400
436Unable to capture void or refund400
436Missing required fields400
437Invalid CVC400
438Invalid request400
439Unable to load TokenEx500
440Insufficient access401
441Amount needs to be a number400
443Verify AVS Failed400
5xxGeneric server error500