Paytrim

Error reasons

Why a payment was declined or failed, and what you or your customer can do about it.

When a payment isn't successful, the API still responds with HTTP status 200 OK or 201 Created, but the transaction status is error. The transaction tells you why in two fields:

  • outcomes: the structured result of each stage of the payment, such as the status and response code of the authorisation. Base your logic on these.
  • reason: a short text that explains why the payment was refused. Show it in your logs or to your support team.
{
  "status": "error",
  "transactions": [
    {
      "status": "error",
      "payment_method": "credit-card",
      "reason": "Do not honor",
      "outcomes": {
        "processing": {
          "status": "declined",
          "response_code": "05",
          "response_code_description": "Do not honor"
        }
      }
    }
  ]
}

We recommend outcomes over reason. Its statuses and codes are fixed values, while reason is free text. It also tells a decline apart from a technical error, and tells you when to retry.

Outcomes

outcomes holds an object for each stage the payment went through. A stage that didn't run, or doesn't apply, isn't in it.

Processing

outcomes.processing is the result of the authorisation with the card scheme and the card issuer.

FieldDescription
statusThe result of the authorisation, see below. Always present.
response_codeThe response code of the card network, such as 00 for approved or 05 for do not honor.
response_code_descriptionA readable description of response_code.
merchant_advice_codeAdvice of the card scheme on whether and when to retry a declined payment.
error_descriptionWhat went wrong. Only for error without a response of the card network.
StatusMeaningWhat to do
acceptedThe authorisation was approved.Nothing.
declinedThe issuer or card scheme declined the payment.Check response_code and the decline reasons. Don't retry with the same card unless merchant_advice_code allows it.
soft_declinedThe issuer asks for authentication.Retry the payment with 3D Secure.
errorA technical error at the card network or Paytrim.Check error_description. Your customer can try again or use another payment method.

If the merchant_advice_code field is populated it is advised to follow the advise from the scheme. The most common ones:

CodeAdvice
01New account information is available. Ask your customer for their new card details.
02The payment can't be approved now. Try again later.
03Don't try again.
21The cardholder cancelled the payment agreement. Stop your recurring payments.

See the documentation of Mastercard for all codes.

Decline reasons

When the issuer or card scheme declines a payment, outcomes.processing.response_code_description is one of the texts below. The transaction reason holds the same text.

The Source column shows who refused the payment:

  • Issuer: the card issuer (your customer's bank). Your customer can usually solve it with their bank, or by using another card or payment method.
  • Card scheme: the card scheme network, such as Visa or Mastercard, for example because the payment couldn't be routed.
SourceReasonDescription
IssuerInvalid card numberThe card issuer can't validate the card number.
IssuerFormat errorThe card issuer doesn't recognise the transaction details. Your customer should check the details and try again.
IssuerNot supportedThe card issuer declined the payment, possibly because of a hold on the card.
IssuerInsufficient funds/over credit limitThe account has insufficient funds or exceeds its credit limit. Your customer can add funds or use another payment method.
IssuerTransaction not permitted to issuer/cardholderThe payment isn't permitted for this issuer or cardholder. Your customer should use another payment method.
IssuerTransaction not permitted to acquirer/terminalThe card issuer doesn't permit this payment on this card or account. Your customer can use another payment method or contact their bank.
IssuerExceeds withdrawal amount limitThe amount exceeds the card's withdrawal limit. Your customer can try again after solving it with their bank, or use another payment method.
IssuerRestricted cardThe card is restricted and can't be used for this payment, for example because of an embargo.
IssuerExceeds withdrawal count limit / Soft-decline (Mastercard)Mastercard: authentication is required. If the payment falls under PSD2 and didn't go through 3-D Secure, retry it with 3-D Secure. This is a soft decline.
IssuerAllowable number of PIN tries exceededThe wrong PIN was entered too many times. Your customer should try again or use another payment method.
IssuerLife cycleThe payment can't be processed because of the card's life cycle.
IssuerDomestic debit transaction not allowedDomestic debit payments aren't allowed for this payment.
IssuerFraud/Security (Mastercard)Mastercard: the card issuer flagged the payment as a possible fraud or security risk.
IssuerCryptographic failureThe cryptographic process failed.
IssuerAuthorization system or issuer system inoperativeThe authorisation system or the issuer's system is unavailable. Your customer should try again or use another payment method.
IssuerAdditional customer authentication required (Visa)Visa: authentication is required. If the payment falls under PSD2 and didn't go through 3-D Secure, retry it with 3-D Secure. This is a soft decline.
IssuerRefer to card issuerContact the card issuer for further instructions.
IssuerInvalid merchantThe card issuer refused the payment. Your customer should ask their bank for clarification and can try again once it's solved.
IssuerPick up card (no fraud)The issuer asks to confiscate the card, without suspicion of fraud.
IssuerDo not honorA generic refusal with several possible causes. Your customer should ask their bank for clarification.
IssuerErrorThe payment couldn't be authorised. Your customer can try again or use another payment method.
IssuerInvalid transactionThe card issuer doesn't allow this type of payment on this card or account, for example a fleet card used for a purchase it isn't meant for.
IssuerInvalid amountAn invalid format or field. This often happens with debit or prepaid cards that can't be used online.
IssuerInvalid account numberThe card issuer can't validate the account number.
IssuerLost cardThe card was reported lost. Check your customer's identity and refer them to their bank.
IssuerStolen cardThe card was reported stolen. Check your customer's identity and refer them to their bank.
IssuerClosed accountThe account of the card has been closed.
IssuerNot sufficient fundsThe account has insufficient funds. Your customer can add funds or use another payment method.
IssuerExpired cardThe card has expired. Your customer should correct the expiry date or use another payment method.
IssuerTransaction not permitted to cardholderThe card issuer doesn't permit the payment on this card. Your customer can use another payment method.
IssuerSuspected fraudThe payment is suspected to be fraudulent.
IssuerExceeds approval amount limitYour customer exceeded their card limit. They can try again after solving it with their bank.
IssuerInvalid/nonexistent account specified (general)The card belongs to a new cardholder and hasn't been properly unblocked.
IssuerRestricted card (card invalid in region or country)The card can't be used in this region or country.
IssuerSecurity violationA security violation occurred during the payment.
IssuerTransaction does not fulfill AML requirementThe payment doesn't meet anti-money laundering requirements.
IssuerExceeds withdrawal frequency limitYour customer exceeded how often the card can be used. They can use another payment method or try again after solving the limit.
IssuerBlocked, first used or special conditionThe card is blocked, new and not activated yet, or temporarily blocked. Your customer can try again after solving it with their bank.
IssuerNegative online CAM, dCVV, iCVV, CVV, etc. resultsAn online verification method, such as CVV or dCVV, gave a negative result.
IssuerIssuer unavailableThe card issuer is unavailable. Your customer should try again or use another payment method.
IssuerTransaction cannot be completed violation of lawThe payment violates a law, so the issuer doesn't allow it. Your customer should use another payment method.
IssuerSystem malfunctionThe issuing bank can't be reached. Your customer should try again or use another payment method.
IssuerDecline for CVV2 failureThe CVV2 check failed. Your customer should try again or use another payment method.
IssuerAccount not yet activatedThe card or account has been issued, but isn't active yet.
IssuerAllowable number of Pin-entry tries exceededThe card is locked for PIN entry after too many wrong attempts. This is a security control of the issuer.
IssuerBlocked by cardholder/contact cardholderThe cardholder blocked this card.
IssuerCapture cardThe issuer permanently revoked the card and wants it confiscated. This is a hard decline, usually related to fraud.
IssuerContact card issuerA generic decline. The cardholder should contact their bank.
IssuerCryptographic error found in PinThe encrypted PIN failed the issuer's cryptographic check. Usually a fraud or security decline, or a technical key mismatch.
IssuerCVC contains an invalid amount of charactersThe security code doesn't match.
IssuerInvalid response status codeThe issuer's reply couldn't be understood. This is a technical error.
IssuerNo checking accountThe card has no valid checking or current account. This is an issuer or account setup decline.
IssuerNo credit accountThe card has no active credit facility. This is an issuer or account setup decline.
IssuerNo savings accountThe payment asked for a savings account that doesn't exist or isn't linked. This is an issuer or account setup decline.
IssuerPick up card- special condition (fraud account)The account is confirmed as fraudulent. This is a hard fraud decline.
IssuerPin incorrect or missingThe PIN was wrong, or missing when it was required.
IssuerStop all future paymentsThe cardholder asked their bank to stop all future payments to you.
IssuerStop this paymentThe cardholder asked their bank to block this payment, often because of a cancelled subscription or a dispute.
IssuerTransaction not supported/blocked by issuerThe issuer blocked the payment, or the card product doesn't support it.
IssuerVerification data failedThe security or verification data doesn't match the issuer's records.
Card schemePolicy (Mastercard)Mastercard: the payment was refused because of a policy violation.
Card schemeUnable to route transactionThe payment can't be routed. This can happen when a test card is used in live mode. Your customer should use another payment method.
Card schemeNo such issuerThe card issuer doesn't exist or isn't recognised.
Card schemeRe-enter transaction (Visa)Visa: the payment can't be processed at the moment.
Card schemeDuplicate transmission detectedThe acquirer or issuer received the same authorisation request more than once.
Card schemeInvalid issuerThe card's BIN doesn't belong to a valid issuer. This is a routing or configuration decline.
Card schemeSystem errorA generic failure at the issuer, acquirer or card network.
Card schemeUnknownThe reason for the decline couldn't be determined. This is a technical or mapping issue.

Platform errors

When Paytrim or the integration refuses the payment before it reaches the card network, for example because of invalid data in your request, there's no response_code_description. The transaction reason is one of these texts:

ReasonDescription
CancelledThe payment was stopped on the cardholder's instruction.
Fail to retrieve card details. Not foundThe card data linked to the payment couldn't be found. This is a technical or tokenisation issue.
Fail to retrieve card details. Unknown errorThe stored card data couldn't be retrieved because of an unexpected internal failure.
The request does not adhere to the defined api schemaAn integration or validation error. Check your request against the API reference.
The server encountered an unexpected conditionA technical issue at a party in the payment chain, such as the gateway, the acquirer or the issuer's 3-D Secure server.
Transaction not allowed at terminalYour account isn't set up for this type of payment.
Vault_token was not foundThe vault_token in your request doesn't exist. This is an integration or validation error.

You only get a reason when the status is error. Orders and transactions with status cancelled or expired don't have one.

Response codes

The response code of the card network is in outcomes.processing.response_code, and also in payment_method_details.authorization_iso_response_code. For its meaning, see the documentation of the card scheme.

3-D Secure error reasons

When 3-D Secure authentication fails, the reason is one of these, followed by a transStatusReason code:

ReasonMeaning
Fail to start 3ds authentication.3-D Secure authentication couldn't be started.
Fail to authenticate 3ds challenge.Your customer didn't pass 3-D Secure authentication.

The transStatusReason code tells you why:

CodeDescription
01Card authentication failed
02Unknown device
03Unsupported device
04Exceeds authentication frequency limit
05Expired card
06Invalid card number
07Invalid transaction
08No card record
09Security failure
10Stolen card
11Suspected fraud
12Transaction not permitted to cardholder
13Cardholder not enrolled in service
14Transaction timed out at the ACS
15Low confidence
16Medium confidence
17High confidence
18Very high confidence
19Exceeds ACS maximum challenges
20Non-payment transaction not supported
213RI transaction not supported
22ACS technical issue
23Decoupled authentication required by ACS but not requested by 3DS Requestor
243DS Requestor decoupled max expiry time exceeded
25Decoupled authentication was provided insufficient time to authenticate cardholder
26Authentication attempted but not performed by the cardholder
27–79Reserved for future use by EMVCo
80–99Reserved for use by the Directory Server

See 3D Secure for how authentication works.

On this page