A gateway rejection and a bank decline arrive at your store looking identical. They are not. One means the customer bank said no, the other means your request never got that far. Reading the difference saves an afternoon of blaming the wrong party.
Two layers, two vocabularies
The gateway answers first with a status: approved, declined, or error. Behind that sits the issuer response, which is the bank actual answer. A gateway error almost always means your request was malformed, unauthorised or asking for something the account cannot do. A gateway decline is usually the bank talking through the gateway.
The responses you will actually see
| What you see | What it means | Who fixes it |
|---|---|---|
| Transaction declined | The issuer refused. No further reason is given to the merchant | The cardholder |
| Invalid credentials or authentication failed | Wrong API key, or a key from the other environment | You, in the plugin settings |
| Transaction type not allowed | The MID is not enabled for that operation, commonly ACH or recurring | Your ISO or acquirer |
| Invalid amount | Zero, negative, or wrong decimal handling for the currency | You, usually a currency formatting bug |
| Duplicate transaction | Same card and amount inside the duplicate window | You, by preventing double submits |
| Invalid card number or expiry | The data failed validation before it reached the bank | The customer, at the form |
| Vault or customer not found | The stored token no longer exists in the vault | You, by re-collecting the card |
| AVS or CVV rejection | Your own filter refused a transaction the bank approved | You, in the fraud rules |
The one that catches everybody
An AVS or CVV rejection is not a decline. The issuer approved the authorisation, your rules then voided it. In the gateway history it can look like a failed sale while the cardholder sees a pending charge that disappears a few days later. If customers report a charge for an order you never received, look here first, and read our guide to the response letters.
Sandbox does not prove the account works
Sandbox is a simulator. It will approve a transaction type your live MID has never been enabled for. Before launch, run one small live sale for every method you intend to offer, then refund it. That is the only test that proves the account, not the code.
Where to read the response
Every attempt writes the gateway text, the AVS letter and the CVV letter into the WooCommerce order notes, so you can answer a customer without opening the gateway at all. The troubleshooting guide shows where, and what to send support if it is still unclear.