Blocking on Risk (Merchant Advice Codes)

When a credit card transaction is blocked by the issuing bank’s risk controls, PayGate may return additional information in the payment response.

This occurs when a Merchant Advice Code (MAC) indicates that the merchant/card combination should be blocked for the current transaction or future attempts.

This page explains how to read and interpret these fields in PayHost responses.


Overview

When a transaction is blocked due to risk rules, the response will include a RiskDetails element containing:

  • MerchantAdviceCode (MAC)

  • BlockStatus information

No changes are required to your payment requests.
Your integration only needs to read these additional response elements.


Response Elements

RiskDetails

Contains the MAC code returned by the bank and details about the block applied.

Fields

FieldDescriptionRequiredType
MerchantAdviceCodeCode received from the bank indicating the reason for the blockYesString
BlockStatusInformation about whether the block is permanent or temporaryYesRiskBlockStatusType

RiskBlockStatus

Provides details about the duration of the block.

Fields

FieldDescriptionRequiredTypeExample
PermanentIndicates whether the merchant/card combination is permanently blockedYesBooleanfalse
UntilDateDate when the block will be lifted (if temporary)OptionalDateTime2025-02-16T09:13:31.000+02:00

If the block is permanent, the UntilDate field will not be present.


Merchant Advice Codes (MAC)

The MerchantAdviceCode returned in the RiskDetails element indicates the recommended action the merchant should take when a transaction is declined or blocked.

Merchant Advice CodeDescriptionPossible ReasonRecommended Action
01Updated information neededExpired card, account upgrade, or portfolio conversionObtain updated account information before the next billing cycle
02Try again laterOver credit limit or insufficient fundsRetry the transaction after 72 hours
03Do not try againAccount closed or fraudulent activityRequest another payment method from the customer
04Transaction not supportedSLI or cryptographic data issueResubmit the transaction with corrected information
*21Stop recurring payment requestsCardholder cancelled agreementDo not retry this payment
24Retry after 1 hourCredit limit issues or insufficient fundsRetry after 1 hour
25Retry after 24 hoursCredit limit issues or insufficient fundsRetry after 24 hours
26Retry after 2 daysCredit limit issues or insufficient fundsRetry after 2 days
27Retry after 4 daysCredit limit issues or insufficient fundsRetry after 4 days
28Retry after 6 daysCredit limit issues or insufficient fundsRetry after 6 days
29Retry after 8 daysCredit limit issues or insufficient fundsRetry after 8 days
30Retry after 10 daysCredit limit issues or insufficient fundsRetry after 10 days
40Non reloadable prepaid cardIssuer recognized a consumer non reloadable prepaid card was usedNo action required
41Single use virtual card numberIssuer recognized a consumer single use virtual card number was usedNo action required
42Sanctions scoring serviceMastercard refused the transaction due to a sanctions matchNo action required
43Consumer multi use virtual card numberTransaction carried out using a consumer multi use virtual card numberNo action required

Example CardPaymentResponse (Risk Blocked)

<ns2:RiskDetails>
  <ns2:MerchantAdviceCode>2</ns2:MerchantAdviceCode>
  <ns2:BlockStatus>
    <ns2:Permanent>false</ns2:Permanent>
    <ns2:UntilDate>2025-02-16T09:13:31.000+02:00</ns2:UntilDate>
  </ns2:BlockStatus>
</ns2:RiskDetails>