Magento payment failures: how to tell a payment method has stopped working
When one payment method breaks, total orders often dip only a little, so nobody notices. Here is how to spot it per method, and what usually causes it.
A broken payment method is one of the most expensive quiet problems a Magento store can have. Customers reach the last step, choose a card or a wallet, and the order never completes. The store keeps loading. Other payment methods keep working. Total orders drop, but often not enough for anyone to notice until the end of the day.
Why total orders hide it
If a store takes payments through three methods and one of them breaks, total orders might fall by a third, or by much less if that method is rarely used. On a quiet morning, a third fewer orders looks like a quiet morning. Looking at the total alone, you would wait hours to be sure.
The fix is to look at each payment method on its own.
The signal to watch
For each payment method, look at recent orders and ask: how many of them ended up stuck or cancelled?
In Magento, an order paid by card normally moves from pending_payment to processing within a minute or two. When a payment method breaks, orders for that method pile up in pending_payment, or are cancelled after a timeout. A simple version of the check is:
SELECT payment.method, sales_order.status, COUNT(*) AS orders
FROM sales_order
JOIN sales_order_payment payment ON payment.parent_id = sales_order.entity_id
WHERE sales_order.created_at > NOW() - INTERVAL 3 HOUR
GROUP BY payment.method, sales_order.status;
If most orders for one method in the last few hours are stuck or cancelled while the others complete normally, that method is broken.
Common causes
- Expired or rotated credentials. API keys for the payment provider expire, are rotated by someone else, or differ between staging and production after a deployment.
- An extension update. A payment module update changes a setting, a callback address or a JavaScript file.
- A callback that no longer reaches the store. Many providers confirm payments by calling the store back. A firewall rule, a changed domain or a new security setting can block it, so payments succeed at the provider and orders stay pending in Magento.
- A change at the provider. New 3-D Secure rules, a deprecated API version or an account review on the provider's side.
What to do when you spot it
- Check the provider's own dashboard: are payments arriving there?
- If they are, the problem is the callback into Magento. Check the provider's webhook log for errors.
- If they are not, check the credentials and the payment module's configuration for the live store.
- Look at what changed just before the problem started. A deployment or extension update is the most common answer.
How StoreOnCall watches payments
The StoreOnCall Magento plugin reads, every 5 minutes, how many orders for each payment method in the last 3 hours ended up stuck waiting for payment or cancelled, leaving out orders under 30 minutes old because customers may still be paying. When a method has at least 3 such orders and half or more are stuck or cancelled, the alert names the method and the change that came just before it. On BigCommerce, the same idea runs through a read-only API connection.
Read exactly when the payment check alerts, or start with the free store scan.