• Hello,

    After installed and properly configured the plugin, while testing it in sandbox, after placing an order and trying to pay for it, the API from the title returns 411 Length Required.

    I can see this message in the error_log:
    get_order_key was called incorrectly. Order properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), do_action('template_redirect'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action('wc_ajax_checkout'), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, netopiapayments->process_payment, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

    I changed order_key to get_order_key as suggested on forum, but it still does not work.
    Can you please help me understand what’s going on?
    Thank you!

Viewing 1 replies (of 1 total)
  • This seems to fix the issue for me.

    Modify line 211 from: wc-netopiapayments-gateway.php

    curent:

    $order->order_key,

    modified:

    $order->get_order_key(),

Viewing 1 replies (of 1 total)
  • The topic ‘/wc-api/netopiapayments/ returns 411’ is closed to new replies.