How payment confirmation works
There are two ways a provider reports a payment: the shopper’s browser returns to the store, and the provider sends a notification, called a webhook or IPN, to a fixed URL. The return can fail if the shopper closes the tab, so the notification is the one that counts.
| Provider style | Notification | Example path |
|---|---|---|
| PayPal (Magento built-in) | IPN | /paypal/ipn/ |
| Card providers (Stripe, Adyen, etc.) | Signed webhook | Set by the module, e.g. /stripe/webhooks |
| Bank redirect gateways | Callback or server-to-server POST | Set by the module |
The path depends on the payment module; its configuration page or documentation names it, and the provider dashboard shows where it actually sends.
Where it breaks
| Where | What happens | Sign |
|---|---|---|
| Firewall, WAF, bot protection | The POST is blocked before Magento | 403 in the access log, or nothing |
| Redirects | HTTP to HTTPS or www rules turn POST into GET | 301 or 302 for the provider |
| Old URL | Provider still sends to staging or the old domain | No requests at all |
| Signature | New secret after a migration or key rotation | 401 or 400 from the module |
| Maintenance mode | Deploy window returns 503 | Notifications during deploys are lost unless retried |
Most providers retry failed notifications for hours or days. If the cause is fixed within that window, orders catch up; after it, they need a manual fix.
Test the notification URL
From a server outside your network, send a POST to the notification URL. You want the request to reach Magento: a 400 for a missing signature is fine; a 403, 301 or 503 is not:
curl -s -o /dev/null -w "%{http_code}\n" -X POST \
-H "Content-Type: application/json" -d "{}" \
https://example.com/stripe/webhooksThen check what the provider sees. Every major provider has a delivery log for webhooks, with the status code your store returned and a button to resend.
# What did the store answer to the provider today?
grep -E "POST /(paypal/ipn|stripe/webhooks)" /var/log/nginx/access.log | awk '{print $9}' | sort | uniq -cPrevent it
- Allow the path. Exclude the notification URL from WAF challenges, bot protection and rate limits.
- Update the provider after moves. A new domain or environment means a new webhook URL and often a new signing secret.
- Watch the delivery log. Failed deliveries in the provider dashboard are the earliest sign.
- Watch Pending payment. A growing count of old Pending payment orders means notifications are not landing; see orders stuck in pending payment.
The free MageSentinel Magento module checks for payments stuck pending every 15 minutes and emails you when the count turns red. Related: WAF rules blocking checkout. For a check of the checkout itself, run the free Magento checkout test.
Find out your checkout broke before your customers do.
Real checkout checks for Magento and WooCommerce · free plan · no card requiredMagento checkout monitoring →