Skip to main content

Mastercard

Mastercard Issuer Response Code 12: Invalid Transaction

hard decline

Last updated: October 8, 2026

Key details

Brand
Mastercard
Code
12
Response
12
Detailed Response
Invalid transaction
hard decline
This transaction is not retriable

Payments failing with code 12 are hard declines and typically cannot be recovered by retrying. SmartRetry still helps you avoid future hard declines with smarter routing and validation.

But many other declines in your payment flow may still be recoverable. SmartRetry identifies which failed transactions have recovery potential and applies the right strategy to recover them.

Find out what you can recover >

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.

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 client

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

Decline codes tell you why. We fix it.

SmartRetry reads every decline reason and applies the right retry strategy for each one. Your recovery rate goes up without any changes to your payment provider.