• Resolved kevinume

    (@kevinume)


    Hello,

    We have mollie installed and working on staging and production environment. We have the Yith PDF invoices plugin which generates a PDF invoice after an order is set to ‘processing’.

    This works completely on staging but fails to work ( including sending the automated woocommerce emails ) on production. When I manually trigger the status update for my order, the order eventually generates a PDF and sends emails.

    Settings for the whole setup are identical in both environments. The difference is the Mollie log.

    Log for an order in staging :
    2019-04-29T10:08:56+00:00 DEBUG Mollie_WC_Payment_Payment::onWebhookPaid called for payment 898
    2019-04-29T10:08:58+00:00 DEBUG Mollie_WC_Payment_Payment::onWebhookPaid WooCommerce payment_complete() processed and returned to Mollie_WC_Payment_Payment::onWebhookPaid for payment 898
    2019-04-29T10:08:58+00:00 DEBUG Mollie_WC_Payment_Payment::onWebhookPaid processing paid payment via Mollie plugin fully completed for order 898
    2019-04-29T10:08:59+00:00 DEBUG Mollie_WC_Gateway_Abstract::getReturnRedirectUrlForOrder 898: Determine what the redirect URL in WooCommerce should be.
    2019-04-29T10:08:59+00:00 DEBUG Mollie_WC_Plugin::onMollieReturn: Redirect url on return order mollie_wc_gateway_bancontact, order 898: https://xxxxxxxx/checkout/order-received/898/?key=wc_order_a8Mj0TXEIEdIQ&utm_nooverride=1

    Log for an order in production :
    2019-04-29T10:11:20+00:00 DEBUG Mollie_WC_Payment_Payment::onWebhookPaid called for payment 1030
    2019-04-29T10:11:22+00:00 DEBUG Mollie_WC_Gateway_Abstract::getReturnRedirectUrlForOrder 1030: Determine what the redirect URL in WooCommerce should be.
    2019-04-29T10:11:22+00:00 DEBUG Mollie_WC_Gateway_Abstract::orderNeedsPayment mollie_wc_gateway_bancontact: Order 1030 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2019-04-29T10:11:22+00:00 DEBUG Mollie_WC_Plugin::onMollieReturn: Redirect url on return order mollie_wc_gateway_bancontact, order 1030: https://xxxxxxxx/checkout/order-received/1030/?key=wc_order_U9ebr0CXRLDYX&utm_nooverride=1
    2019-04-29T10:11:56+00:00 DEBUG Mollie_WC_Helper_Data::deleteTransients: Mollie settings saved, delete transients

    seems that payment_complete() doesnt get triggered on production but the order does have the correct status after a payment..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor davdebcom

    (@davdebcom)

    The plugin does trigger payment_complete(), but inside that function something goes wrong, and it never returns to the Mollie plugin.

    Most often we see this with for example a PDF that takes too long to process, causing a server time out. Please disable that PDF plugin and place another payment, does it then work?

    Did you check the error logs and check for server imte outs or fatal errors?

    Plugin Contributor davdebcom

    (@davdebcom)

    Hope you managed to find a solution. Closing for now, please contact me if you need more assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mollie not triggering payment_complete() on production environment’ is closed to new replies.