• Resolved beanslel

    (@beanslel)


    Currently testing integration with my store in test mode, orders are made and payment status is successfully transmitted to the mollie dashboard (I see the order status changing from order created, payment pending and paid in the mollie dashboard). However, when I complete the order in woocommerce, the “completed” status is not transmitted to mollie, it remains in Paid status in mollie, while it is completed in woocommerce. I don’t see any error in the logs, and everything else is working. There is also no entry in the log when I change the order status to completed. The last entry is the redirect after order payment. Any ideas?

    2018-12-13T21:01:17+00:00 DEBUG mollie_wc_gateway_ideal: Start process_payment for order 681
    2018-12-13T21:01:18+00:00 DEBUG getUserMollieCustomerId: Mollie Customer ID (cst_c2HPUtfr5e) found and valid for user 1 on this API key. (test).
    2018-12-13T21:01:18+00:00 DEBUG mollie_wc_gateway_ideal: Order 681 webhookUrl: https://www.annorlunda.be/wc-api/mollie_wc_gateway_ideal/?order_id=681&key=wc_order_5c12c89d6821b
    2018-12-13T21:01:18+00:00 DEBUG mollie_wc_gateway_ideal: Create Mollie payment object for order 681
    2018-12-13T21:01:18+00:00 DEBUG Creating payment object: type Order, first try creating a Mollie Order.
    2018-12-13T21:01:18+00:00 DEBUG setUserMollieCustomerId: Stored Mollie customer ID cst_c2HPUtfr5e with user 1
    2018-12-13T21:01:18+00:00 DEBUG mollie_wc_gateway_ideal: Mollie payment object ord_yjawwx (test) created for order 681
    2018-12-13T21:01:18+00:00 DEBUG For order 681 redirect user to Mollie Checkout URL: https://www.mollie.com/payscreen/order/checkout/yjawwx
    2018-12-13T21:02:00+00:00 DEBUG mollie_wc_gateway_ideal: Mollie payment object ord_yjawwx (test) webhook call for order 681.
    2018-12-13T21:02:00+00:00 DEBUG mollie_wc_gateway_ideal: Order 681 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2018-12-13T21:02:00+00:00 DEBUG Mollie_WC_Payment_Order::onWebhookPaid called for order 681
    2018-12-13T21:02:01+00:00 DEBUG Mollie_WC_Payment_Order::onWebhookPaid WooCommerce payment_complete() processed and returned to Mollie_WC_Payment_Order::onWebhookPaid for order 681
    2018-12-13T21:02:02+00:00 DEBUG Mollie_WC_Payment_Order::onWebhookPaid processing paid order via Mollie plugin fully completed for order 681
    2018-12-13T21:02:02+00:00 DEBUG Mollie_WC_Gateway_Abstract::getReturnRedirectUrlForOrder 681: Determine what the redirect URL in WooCommerce should be.
    2018-12-13T21:02:02+00:00 DEBUG Mollie_WC_Plugin::onMollieReturn: Redirect url on return order mollie_wc_gateway_ideal, order 681: https://www.annorlunda.be/checkout/order-received/681/?key=wc_order_5c12c89d6821b&utm_nooverride=1
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor davdebcom

    (@davdebcom)

    Hi,

    thanks for reaching out. From the logs I am seeing that Mollie can reach the site, and it does process the payment, but there is something else that is blocking the order status update.

    This is the log message I am referring to:
    2018-12-13T21:02:01+00:00 DEBUG Mollie_WC_Payment_Order::onWebhookPaid WooCommerce payment_complete() processed and returned to Mollie_WC_Payment_Order::onWebhookPaid for order 681

    Is the status for order 681 not updated to Completed in WooCommerce?

    Do you have another plugin installed that could be influencing the order status?

    Kind regards
    David

    Thread Starter beanslel

    (@beanslel)

    Hi,

    When payment is completed, the order status is automatically changed from “pending” to “processing” in wc. This works fine. Then, when I ship the product I manually change it to “completed” in Woocommerce (I don’t handle my shipping through Mollie), shouldn’t it also change the order to completed in the Mollie dashboard when I do that? It remains in the “paid” status in the Mollie dashboard. Or is that working as intended?

    I don’t have any plugins that can interfere with order status. Btw I recently upgraded to WP Version 5.0.1, running the latest version of the plugin.

    Edit: just noticed something else: when the order is in “processing” in wc and I ship the order from the Mollie dashboard, the order is indeed not changed to completed in wc. In the Mollie dashboard it even says the webhook was successfully called after shipment, but the order status stays on processing in wc. There are these additional lines in the logs (tested it with a new order):

    2018-12-15T15:33:35+00:00 DEBUG mollie_wc_gateway_bancontact: Mollie payment object ord_jj5l4n (test) webhook call for order 691.
    2018-12-15T15:33:35+00:00 DEBUG Mollie_WC_Gateway_Abstract::handlePaidOrderWebhook - mollie_wc_gateway_bancontact: Order 691 does not need a payment by Mollie (payment ord_jj5l4n).
    2018-12-15T15:33:35+00:00 DEBUG Mollie_WC_Gateway_Abstract::processRefunds called for order 691 / payment ord_jj5l4n
    2018-12-15T15:33:35+00:00 DEBUG Mollie_WC_Gateway_Abstract::processRefunds: No refunds to process for order 691 / payment ord_jj5l4n
    2018-12-15T15:33:35+00:00 DEBUG Mollie_WC_Gateway_Abstract::processChargebacks called for order 691 / payment ord_jj5l4n
    2018-12-15T15:33:35+00:00 DEBUG Mollie_WC_Gateway_Abstract::processChargebacks: No chargebacks to process for order 691 / payment ord_jj5l4n

    Kind regards

    • This reply was modified 6 years, 3 months ago by beanslel.
    • This reply was modified 6 years, 3 months ago by beanslel.
    • This reply was modified 6 years, 3 months ago by beanslel.
    • This reply was modified 6 years, 3 months ago by beanslel.
    Plugin Contributor davdebcom

    (@davdebcom)

    Hi

    Thank you for the information, I now have a clear picture of what I need to review. I’ll do that today or tomorrow and get back to you!

    Kind regards
    David

    Plugin Contributor davdebcom

    (@davdebcom)

    Sorry for the late reply, missed that I still needed to update you!

    Then, when I ship the product I manually change it to “completed” in Woocommerce (I don’t handle my shipping through Mollie), shouldn’t it also change the order to completed in the Mollie dashboard when I do that?

    Yes, it should.

    It remains in the “paid” status in the Mollie dashboard. Or is that working as intended?

    Where are you looking, in Payments or Orders? There’s a big difference. Only the order will be changed to completed in the Mollie dashboard, the payment will stay paid.

    when the order is in “processing” in wc and I ship the order from the Mollie dashboard, the order is indeed not changed to completed in wc. In the Mollie dashboard it even says the webhook was successfully called after shipment, but the order status stays on processing in wc.

    Correct, there is no order status update in the current version of the plugin. Only an order note is added and some internal processing is done.

    Updated this in 5.1 beta so it does set the entire order to completed, would you like to test it? Then email me at [email protected].

    Plugin Contributor davdebcom

    (@davdebcom)

    when the order is in “processing” in wc and I ship the order from the Mollie dashboard, the order is indeed not changed to completed in wc. In the Mollie dashboard it even says the webhook was successfully called after shipment, but the order status stays on processing in wc.

    Actually, I’m reconsidering this. Completed in WooCommerce doesn’t mean the same as completed in Mollie:

    When all order lines are completed or canceled, the order will be set to this status.

    See: https://docs.mollie.com/orders/status-changes

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Orders not completed’ is closed to new replies.