Title: PHP Notice: Undefined property: stdClass::$code
Last modified: February 16, 2021

---

# PHP Notice: Undefined property: stdClass::$code

 *  [forgetme](https://wordpress.org/support/users/forgetme/)
 * (@forgetme)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclasscode/)
 * I’m getting the following PHP error in query monitor and wanted to pass it along.
 * /wp-content/plugins/afterpay-gateway-for-woocommerce/class/WC_Gateway_Afterpay.
   php on line 439

Viewing 1 replies (of 1 total)

 *  Plugin Author [Afterpay](https://wordpress.org/support/users/afterpayit/)
 * (@afterpayit)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclasscode/#post-14187558)
 * Hi [@forgetme](https://wordpress.org/support/users/forgetme/),
 * Thank you for reporting this behaviour and for including a relevant line number.
   The only known time that this piece of code is run is in the event of a WordPress
   error (most commonly a network error). Further to this, the team advises that
   it should only be happening when running using v0. The suggestion from the team
   would be to change the ‘API Version’ in the plugin settings to ‘v1 (recommended)’.
 * If you would like further assistance please submit a support request using the
   following web form:
    [https://help.afterpay.com/hc/requests/new?ticket_form_id=193406](https://help.afterpay.com/hc/requests/new?ticket_form_id=193406)
 * A member of the team will then reach out to you within 1 business day.
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘PHP Notice: Undefined property: stdClass::$code’ is closed to new replies.

 * ![](https://ps.w.org/afterpay-gateway-for-woocommerce/assets/icon.svg?rev=3261877)
 * [Afterpay Gateway for WooCommerce](https://wordpress.org/plugins/afterpay-gateway-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/afterpay-gateway-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Afterpay](https://wordpress.org/support/users/afterpayit/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/php-notice-undefined-property-stdclasscode/#post-14187558)
 * Status: not resolved