mollie / WooCommerce

Official Mollie extension for WooCommerce
https://wordpress.org/plugins/mollie-payments-for-woocommerce/
Other
131 stars 53 forks source link

Problems with WebHookUrl #679

Closed MaxRenglet closed 2 years ago

MaxRenglet commented 2 years ago

Hi,

I have a problems with all my orders, they don't change status on woocommerce but do on mollie dashboard..

Is there a way to debug something after a successfull call from mollie to the client website ? I don't see how we can manage to check if the webhookurl is correctly called and the call is indeed successfull.. I can see the logs but nothing seem to be relative to this mather.

Neither can i see where is the change status in the code of the plugin.. Maybe can someone tell me where can I add some debug to understand why woocommerce has a problem to switch status ?

There is some cleaned logs (I just removed the client url and all ids), is those seems to be a successfull or not ? I can really tell ..

2022-07-07T12:20:07+00:00 DEBUG creditcard: Start process_payment for order ******
2022-07-07T12:20:07+00:00 DEBUG getUserMollieCustomerId: Mollie Customer ID (**********) found and valid for user ** on this API key. (test).
2022-07-07T12:20:07+00:00 DEBUG mollie_wc_gateway_creditcard: Create Mollie payment object for order ******
2022-07-07T12:20:07+00:00 DEBUG  Order ****** returnUrl:**********.com/fr/checkout/order-received/******/?key=wc_order_*******&order_id=******&filter_flag=onMollieReturn
2022-07-07T12:20:07+00:00 DEBUG  Order ****** webhookUrl:**********.com/wc-api/mollie_wc_gateway_creditcard?order_id=******&key=wc_order_*******&filter_flag
2022-07-07T12:20:07+00:00 DEBUG Creating payment object: type Order, first try creating a Mollie Order.
2022-07-07T12:20:08+00:00 DEBUG setUserMollieCustomerId: Stored Mollie customer ID ********** with user 17
2022-07-07T12:20:08+00:00 DEBUG creditcard: Mollie payment object ord_****** (test) created for order ******
2022-07-07T12:20:08+00:00 DEBUG For order ****** redirect user to Mollie Checkout URL: https://www.mollie.com/checkout/order/******
2022-07-07T12:20:13+00:00 DEBUG Mollie\WooCommerce\Gateway\MolliePaymentGateway::getReturnRedirectUrlForOrder ******: Determine what the redirect URL in WooCommerce should be.
2022-07-07T12:20:13+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment mollie_wc_gateway_creditcard: Order ****** orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
2022-07-07T12:20:13+00:00 DEBUG Mollie\WooCommerce\Payment\PaymentModule::onMollieReturn: Redirect url on return order mollie_wc_gateway_creditcard, order ******:**********.com/fr/checkout/order-received/******/?key=wc_order_*******&utm_nooverride=1
InpsydeNiklas commented 2 years ago

This log excerpt is missing the section which confirms the webhook receipt:

DEBUG Mollie\WooCommerce\Payment\MollieOrder::onWebhookPaid called for order 108
DEBUG Mollie\WooCommerce\Payment\MollieOrder::onWebhookPaid WooCommerce payment_complete() processed and returned to Mollie\WooCommerce\Payment\MollieOrder::onWebhookPaid for order 108
DEBUG Mollie\WooCommerce\Payment\MollieOrder::onWebhookPaid processing paid order via Mollie plugin fully completed for order 108
DEBUG Mollie\WooCommerce\Payment\MollieOrder::onWebhookPaid updated payment with webhook and metadata 

There can be many reasons for webhook issues like a firewall or potential plugin conflict. So I suggest reaching out to the support directly if the problem persists for you: https://mollie.inpsyde.com/docs/request-support/ Thanks!