Skip to main content
Mastercard

Mastercard

Mastercard Issuer Response Code 12: Invalid Transaction

hard decline

Last updated: September 25, 2026

About 12 - "Invalid transaction"

Key details

Brand
Mastercard
Code
12
Category
Issuer Response Codes
Response
12
Detailed Response
Invalid transaction
hard decline

What it means

Mastercard issuer response code 12 signifies an 'Invalid transaction' in ISO 8583 Data Element 39. This typically occurs when the card issuer has a policy against the specific type of transaction attempted on the cardholder's account. It often indicates a mismatch between the attempted payment context and the allowed capabilities of the specific card product.

Classification & retryability

hardRetryable: conditional

Do not automatically loop or blindly retry this decline. A retry is only viable if you identify and correct an invalid transaction parameter—such as a malformed merchant category, incorrect channel, or unsupported currency—before re-submitting.

Why does code 12 occur?

  • The cardholder is attempting to use a specialized card, such as a fleet card or FSA card, for an unpermitted merchant category.
  • The issuer has a policy restricting cross-border or international transactions on the specific debit or credit card.
  • The transaction type or processing mode (e.g., recurring vs. initial transaction) is fundamentally unsupported by the issuer for that account.

How to solve 12?

First, validate your transaction data with your acquirer. Check the processing mode, currency, merchant category code (MCC), and cross-border settings to ensure the authorization request was correctly constructed. If the transaction parameters are accurate, the decline is due to a strict issuer policy. In this case, present an alternative payment method to the customer or instruct them to contact their issuing bank to lift the restriction.

Solving as a merchant

Review the transaction payload for formatting errors, improper recurring transaction indicators, or mismatched cross-border flags. If the request is accurately formatted for the intended purchase, halt retries and prompt the shopper to use a different payment method.

Solving as a customer

Provide an alternative credit card or payment method at checkout, or contact the card-issuing bank to request that they authorize this specific type of transaction.

Tip from SmartRetry Suppress automatic retries with identical payloads, as an unchanged authorization will consistently trigger this issuer block. Only re-attempt if your payment engine can dynamically alter the transaction context—such as switching to a local acquiring route to clear cross-border restrictions—otherwise prompt immediately for an alternative payment method.

Frequently asked questions about this topic

Share this article

Share on XShare on FacebookShare on LinkedIn
Kyle Regacho

Author

Kyle Regacho
LinkedInFind me on Linkedin

Focused on payment recovery, decline codes, and authorization optimization at SmartRetry. Helps payment teams turn failed transactions into recovered revenue

Read all articles >
View all