Title: php error after proceeding with payment
Last modified: October 7, 2019

---

# php error after proceeding with payment

 *  [pduke](https://wordpress.org/support/users/pduke/)
 * (@pduke)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-after-proceeding-with-payment/)
 * Hi, in my case the plugin returns an error.
    From the log: Got error ‘PHP message:
   payment_method was called incorrectly. Order properties should not be accessed
   directly. Backtrace: require(‘wp-blog-header.php’), wp, WP->main, do_action_ref_array(‘
   wp’), WP_Hook->do_action, WP_Hook->apply_filters, nbg_message, WC_Abstract_Legacy_Order-
   >__get, wc_doing_it_wrong. This message was added in version
 * I tried it with WP 4.9 and 5.2, also with WooCommerce 3.3 and 3.5, as well as
   php 7.0 and 7.1
    Same message, returns to “There was an error …. etc” page and
   the order stays on “Pending payment”
 * any ideas?

The topic ‘php error after proceeding with payment’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-payment-gateway-national-bank-
   greece.svg)
 * [National Bank of Greece Payment Gateway for WooCommerce](https://wordpress.org/plugins/woo-payment-gateway-national-bank-greece/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-payment-gateway-national-bank-greece/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-payment-gateway-national-bank-greece/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-payment-gateway-national-bank-greece/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-payment-gateway-national-bank-greece/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-payment-gateway-national-bank-greece/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [pduke](https://wordpress.org/support/users/pduke/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/php-error-after-proceeding-with-payment/)
 * Status: not resolved