Plugin registers web hook to local (unreachable) staging server during testing
-
As recommended by WooCommerce, I use a staging/testing server (which is just my laptop running LAMP). The problem is that very often your paymill plugin “registers” the web hook and assigns my localhost address to it.
This just happened now, when I upgraded all plugins.
I just noticed because I got an email by paymill saying (in very bad german):
[Info] Webhook Fehler Guten Tag, wir haben festgestellt, dass der Webhook "hook_XXX“ auf Fehler l?uft und haben ihn daher am 20.02.16 13:06 deaktiviert. Bitte prüfen Sie, ob Ihr Webhook wie gewünscht funktioniert - Sie k?nnen ihn jederzeit in Ihrem PAYMILL Konto reaktivieren. https://app.paymill.com/webhooks/hook_XXX Viel Erfolg Ihr PAYMILL Team
Here is what the “Maintenance” tab said:
Wartung Webhook Status Check Bitte beachte, dass Webhooks derzeit nur in WooCommerce unterstützt werden. Gespeicherter Webhook gefunden: ID: hook_XXX Live-Modus: ja Aktiv: no - please activate this webhook! Event Typen: subscription.created, subscription.deleted, subscription.failed, subscription.succeeded, subscription.canceled, transaction.failed, transaction.succeeded Adresse: https://meinlaptop.lan/fr-backup.2016-02-19-00-10-57/www.MY-SITE.de/htdocs/?wc-api=WC_Gateway_Paymill_Gateway Webhook Adresse nicht korrekt! Bitte aktualisiere die Webhook Adresse, indem du deine Paymill API Keys nochmals speicherst. Die korrekte Webhook Adresse sollte diese sein: https://www.MY-SITE.de/?wc-api=WC_Gateway_Paymill_Gateway
I just saved the API keys again and now everything was ok again. But I guess this meant a (payment) downtime during which paymill could not be used for payment?
Anyway, couldn’t you just somehow prevent that the web hooks gets registered to an unreachable localhost server? This automatic registration is really a pain during developing…
- The topic ‘Plugin registers web hook to local (unreachable) staging server during testing’ is closed to new replies.