Title: PHP Error with PP Express
Last modified: February 8, 2018

---

# PHP Error with PP Express

 *  [tim15465233](https://wordpress.org/support/users/tim15465233/)
 * (@tim15465233)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-pp-express/)
 * Hi,
 * I’ve got an issue with Paypal for WooCommerce on a clients site.
 * The following steps took place:
    – Customer selects a product – Enters a coupon
   code (default WooCommerce coupons) – Opts to click Check out with PayPal and 
   enter credit card details manually (assume customer does not have or want PayPal
   account) – Returned to website to enter remaining details (phone number, etc)
   and confirm order through WooCommerce
 * Rather than proceeding to a confirmation page, I’m getting an error 500 with 
   the following from logs:
    [08-Feb-2018 00:59:52 UTC] PHP Fatal error: Call to
   undefined method WC_Order::get_discount_total() in /home/clientsite/public_html/
   wp-content/plugins/paypal-for-woocommerce/classes/wc-gateway-calculations-angelleye.
   php on line 182
 * I’m running WordPress 4.9.4, WooCommerce 2.6.8 (yes, very old from inherited 
   site), PayPal for WooCommerce 1.4.7.2 and PHP5.6 on this site.
 * Google suggests that WC_Order::get_discount_total() may be depricated, although
   replacing that with get_discount() didn’t help, only altered the above message
   chancing WC_Order::get_discount_total() with WC_Order::get_discount().
 * Any thoughts on what might be causing this, or better how to fix?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * (@angelleyesupport)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-pp-express/#post-9955392)
 * [@tim15465233](https://wordpress.org/support/users/tim15465233/),
    Sorry for 
   the inconvenience, Although, we are not getting any reports for this but please
   allow me some time to run the test and see if I am able to reproduce this issue
   on my local setup. I will get back to you soon. Thanks!
 *  Plugin Contributor [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * (@angelleyesupport)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-pp-express/#post-9955508)
 * [@tim15465233](https://wordpress.org/support/users/tim15465233/), Please note
   that you are using WC version 2.6.8 with latest version of our plugin but with
   this version of PayPal for woo, minimum WC version required is 3.0.
    So either
   you should get your store updated to latest WC compatibility and update that 
   or you can use an earlier version of our plugin.
 * As I ran some test with the latest version but I was not able to see any such
   errors , its definitely related to the old WC version. Please update to latest
   version then you wont see any problems.
 * Let me know if you have any other questions or concerns.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Error with PP Express’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-for-woocommerce_dce4f5.svg)
 * [PayPal for WooCommerce](https://wordpress.org/plugins/paypal-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [angelleyesupport](https://wordpress.org/support/users/angelleyesupport/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/php-error-with-pp-express/#post-9955508)
 * Status: not resolved