woocommerce twocheckout返回付款错误,但邮件发送

时间:2017-08-08 02:41:43

标签: php wordpress

我为woocommerce选择了一个带twocheckout插件的付款方式,支付过程就可以了,我可以通过沙盒使用插件制作paymanet,问题在于流程的退货付款:

Unable to load Boost.Build: could not find "boost-build.jam"
---------------------------------------------------------------
Attempted search from /tmp/libtorrent/libtorrent-rasterbar-1.1.4 up to the root
at /usr/share/boost-build
and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: /tmp/libtorrent/libtorrent-rasterbar-1.1.4/build-aux/.
Please consult the documentation at 'http://www.boost.org'.

和wordpress删除错误

Order properties should not be accessed directly.
Backtrace: require('wp-blog-header.php'), require_once('wp-load.php'), 
require_once('wp-config.php'), require_once('wp-settings.php'), 
do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, 
call_user_func_array, WC_Form_Handler::checkout_action, 
WC_Checkout->process_checkout, WC_Checkout->process_order_payment, 
WC_Gateway_Twocheckout->process_payment, WC_Abstract_Legacy_Order->__get, 
wc_doing_it_wrong

但付款还可以,订单已经下达,实际上甚至订单邮件也会发送,

感谢支持和帮助

1 个答案:

答案 0 :(得分:0)

在阅读了woocommerce的twocheckout函数插件的get方法之后,我意识到调用Order属性有非更新的方法,因此,检查错误应该去 WC order methods of Woocommerce并检查更改:

" process_payment" twocheckout的函数已经弃用了用于调用帐单邮寄地址信息的方法,所以这里有更新:

            if ( 'yes' == $this->debug && $this->notify_url !=='')
            $this->log( 'Generating payment form for order ' . $order->get_order_number() . '. Notify URL: '. $this->notify_url );

        // 2Checkout Args
        $twocheckout_args = array(
                                'token'         => $_POST['token'],
                                'sellerId'      => $this->seller_id,
                                'currency' => get_woocommerce_currency(),
                                'total'         => $order->get_total(),

                                // Order key
                                'merchantOrderId'    => $order->get_order_number(),

                                // Billing Address info
                                "billingAddr" => array(
                                    'name'          => $order->get_billing_first_name() . ' ' . $order->get_billing_last_name(),
                                    'addrLine1'     => $order->get_billing_address_1(),
                                    'addrLine2'     => $order->get_billing_address_2(),
                                    'city'          => $order->get_billing_city(),
                                    'state'         => $order->get_billing_state(),
                                    'zipCode'       => $order->get_billing_postcode(),
                                    'country'       => $order->get_billing_country(),
                                    'email'         => $order->get_billing_email(),
                                    'phoneNumber'   => $order->get_billing_phone()
                                )
                            );

你也可以在forkedre here

上找到更新的methond

希望很快得到更新。