Title: Undefined variable
Last modified: October 17, 2023

---

# Undefined variable

 *  Resolved [maxplateau](https://wordpress.org/support/users/maxplateau/)
 * (@maxplateau)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-94/)
 * Hello,
 * I have this warning message:
 * Undefined variable $setup_intent_id in /wp-content/plugins/payment-gateway-stripe-
   and-woocommerce-integration/includes/class-stripe-checkout.php on line 604
 * This is the line :
   EH_Helper_Class::wt_stripe_order_db_operations($order_id, 
   $order, ‘add’, ‘_eh_stripe_payment_intent’, $setup_intent_id, false);
 * The variable $setup_intent_id is not defined in your function eh_spg_stripe_checkout_order_callback().
 * I think you should fix this.

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

 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-94/#post-17130142)
 * Hi [@maxplateau](https://wordpress.org/support/users/maxplateau/),
 * Thank you for taking the time and effort in bringing this to our attention. Please
   share the version number of the Stripe Payment Gateway plugin you are using so
   we can look into the issue and fix it as soon as possible.
 * We are awaiting your response.
 *  Thread Starter [maxplateau](https://wordpress.org/support/users/maxplateau/)
 * (@maxplateau)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-94/#post-17130162)
 * This is the latest version **3.9.1** :
 * [https://plugins.trac.wordpress.org/browser/payment-gateway-stripe-and-woocommerce-integration/tags/3.9.1/includes/class-stripe-checkout.php](https://plugins.trac.wordpress.org/browser/payment-gateway-stripe-and-woocommerce-integration/tags/3.9.1/includes/class-stripe-checkout.php)
 * Check the line 604 :
   the variable $setup_intent_id is used as a parameter but
   is not defined anywhere.
 *  Plugin Support [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * (@webtoffeesupport)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-94/#post-17143429)
 * Hi [@maxplateau](https://wordpress.org/support/users/maxplateau/),
 * Thank you for sharing the information. We will look into the issue and make the
   necessary changes in the plugin to fix it. You can expect the changes in the 
   upcoming version of the plugin.
 * Thanks you for your understanding!

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

The topic ‘Undefined variable’ is closed to new replies.

 * ![](https://ps.w.org/payment-gateway-stripe-and-woocommerce-integration/assets/
   icon-256x256.gif?rev=3361775)
 * [Payment Gateway of Stripe for WooCommerce](https://wordpress.org/plugins/payment-gateway-stripe-and-woocommerce-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/payment-gateway-stripe-and-woocommerce-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/payment-gateway-stripe-and-woocommerce-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/payment-gateway-stripe-and-woocommerce-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/payment-gateway-stripe-and-woocommerce-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/payment-gateway-stripe-and-woocommerce-integration/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [WebToffee Support](https://wordpress.org/support/users/webtoffeesupport/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/undefined-variable-94/#post-17143429)
 * Status: resolved