Title: getting error while using payment_gateways()
Last modified: July 21, 2021

---

# getting error while using payment_gateways()

 *  Resolved [justinthomasonline](https://wordpress.org/support/users/justinthomasonline/)
 * (@justinthomasonline)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/getting-error-while-using-payment_gateways/)
 * Hi Team,
 * I was using the function WC()->payment_gateways->payment_gateways()[‘payment_id’]
   and it was working fine. Later we have added new plugin which is woocommerce-
   gateway-paypal-express-checkout.([https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/](https://wordpress.org/plugins/woocommerce-gateway-paypal-express-checkout/)).
   Then we are experiencing an error. Call to a member function get_base_country()
   on null
 * Fatal error: Uncaught Error: Call to a member function get_base_country() on 
   null in C:\wamp64\www\slimcd\wp-content\plugins\woocommerce-gateway-paypal-express-
   checkout\includes\class-wc-gateway-ppec-ips-handler.php on line 102
 * Someone kindly advice me, how to resolve this
    -  This topic was modified 4 years, 9 months ago by [justinthomasonline](https://wordpress.org/support/users/justinthomasonline/).

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

 *  Plugin Support [Gabriel – a11n](https://wordpress.org/support/users/gabrielfuentes/)
 * (@gabrielfuentes)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/getting-error-while-using-payment_gateways/#post-14684935)
 * Hi [@justinthomasonline](https://wordpress.org/support/users/justinthomasonline/)
   👋
 * Please reach out to us regarding this specific issue on the following support
   forum:
 * [https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/](https://wordpress.org/support/plugin/woocommerce-gateway-paypal-express-checkout/)
 * We would be happy to help you there 🙂
 * Cheers!
 *  Thread Starter [justinthomasonline](https://wordpress.org/support/users/justinthomasonline/)
 * (@justinthomasonline)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/getting-error-while-using-payment_gateways/#post-14684949)
 * Thanks [@gabrielfuentes](https://wordpress.org/support/users/gabrielfuentes/),
   for the swift response.

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

The topic ‘getting error while using payment_gateways()’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [justinthomasonline](https://wordpress.org/support/users/justinthomasonline/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/getting-error-while-using-payment_gateways/#post-14684949)
 * Status: resolved