craigchristenson / woocommerce-2checkout-api

2Checkout Payment API WooCommerce Payment Module
MIT License
57 stars 43 forks source link

payment response error calling object process_payment #31

Closed balusio closed 7 years ago

balusio commented 7 years ago

i choose a payment method with twocheckout plugin for woocommerce , the payment proccess it is ok, i can make the paymanet via sandbox with the plugin, the issue is on the return payment of the process : after payment get placed on the twochecktout API , the page response drop this error :

Order properties should not be accessed direct

PHP Notice:  billing_first_name called<strong>incorrectly</strong>. 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

also says headers already sent:

"Warning: Cannot modify header information - headers already sent" but the payment is ok, and the order got placed, acctually even the orders mails go sent, the main problem is on the response paymente view thanks for the support and the help

balusio commented 7 years ago

after check methods for process payment i realize that the billing properties had change in the way to invoke them from dhe clas WC_Order, i already make the pull request :)!