• Resolved druut

    (@emkemk)


    Hello,

    We’re using the plugin, and according to Sentry we got this error 18 times in the past 4 hours:

    Call to undefined method WC_Gateway_Afterpay_Nl_Openinvoice::handlePaidOrderWebhook()
    
    /wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrderService.php in Mollie\WooCommerce\Payment\MollieOrderService::onWebhookAction at line 138
    
            if (! $this->orderNeedsPayment($order)) {
                // TODO David: move to payment object?
                // Add a debug message that order was already paid for
                $this->gateway->handlePaidOrderWebhook($order, $payment);

    For request:

    POST /wc-api/mollie_wc_gateway_ideal

    Is this a known error, and do you have an idea what we could do with it?

    Thanks! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter druut

    (@emkemk)

    Update: The gateway is part of the AfterPay/Riverty WooCommerce plugin. The Mollie plugin seems to expect the gateway to have the ‘handlePaidOrderWebhook’ method, but it doesn’t.

    I guess a solution would be to check for the method’s existence:

    if (method_exists($this->gateway, 'handlePaidOrderWebhook')) {
        ...
    Thread Starter druut

    (@emkemk)

    Update 2: Seems like it’s already fixed, but the new version hasn’t released yet: https://github.com/mollie/WooCommerce/pull/739

    … this is meant to be included in the mid-January update

    InpsydeNiklas
    • This reply was modified 2 years, 2 months ago by druut.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Call to undefined method’ is closed to new replies.