Title: Excessive API Calls to payment_method_configurations Causing 429 Errors
Last modified: April 17, 2025

---

# Excessive API Calls to payment_method_configurations Causing 429 Errors

 *  Resolved [Marc](https://wordpress.org/support/users/marcfonteijn/)
 * (@marcfonteijn)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/)
 * Since this morning, my site has experienced extremely slow page load times (25
   + seconds). Upon investigation, it appears the WooCommerce Stripe Gateway plugin
   is making an excessive number of API calls to Stripe on every page load, leading
   to 429 Too Many Requests errors from the Stripe API. Disabling the Stripe Gateway
   plugin immediately resolves the slow page load issue.
 * I noticed a dashboard message this morning related to updating SEPA payment methods(
   or similar wording). I suspect this issue might be related to how the plugin 
   is handling the retrieval or validation of payment method configurations after
   that update notice appeared.
 * **Observations / Steps to Reproduce:**
    1. Activate the WooCommerce Stripe Gateway plugin
    2. Load any page on the backend
    3. Observe HTTP requests using Query Monitor
    4. Notice dozens (50+) of sequential API calls being made to `https://api.stripe.
       com/v1/payment_method_configurations`. It seems one call is made for each “Stripe
       Payment Method ID”.
    5. The first ~50 calls return successfully (HTTP 200).
    6. Subsequent calls to the same endpoint during the same page load start failing
       with HTTP `429 Too Many Requests`.
    7. The page load takes significantly longer (e.g., 25+ seconds) due to these repeated
       API calls and errors.
 * **Stacktrace of the API Call**
 *     ```wp-block-code
       WC_Stripe_API::retrieve()wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:236WC_Stripe_API->get_payment_method_configurations()wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-api.php:473WC_Stripe_Payment_Method_Configurations::get_primary_configuration()wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-payment-method-configurations.php:49WC_Stripe_Payment_Method_Configurations::get_upe_enabled_payment_method_ids()wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-payment-method-configurations.php:88WC_Stripe_UPE_Payment_Method->get_upe_enabled_payment_method_ids()wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-method.php:768WC_Stripe_UPE_Payment_Method->__construct()wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-method.php:129WC_Stripe_UPE_Payment_Method_Klarna->__construct()wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-method-klarna.php:17WC_Stripe_Admin_Notices->payment_methods_check_environment()wp-content/plugins/woocommerce-gateway-stripe/includes/admin/class-wc-stripe-admin-notices.php:440WC_Stripe_Admin_Notices->admin_notices()wp-content/plugins/woocommerce-gateway-stripe/includes/admin/class-wc-stripe-admin-notices.php:67do_action('admin_notices')wp-includes/plugin.php:517
       ```
   
 * **Environment:**
    - WordPress: 6.8
    - WooCommerce: 9.8.1
    - WooCommerce Stripe Gateway: 9.4.0
    - WooCommerce Subscriptions: 7.4.0
 *  -  This topic was modified 1 year, 1 month ago by [Marc](https://wordpress.org/support/users/marcfonteijn/).

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

 *  [Satinder Singh](https://wordpress.org/support/users/satindersingh/)
 * (@satindersingh)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18421366)
 * It was also happening with me, resolved after reconnecting stripe connection 
   from its settings, you can try.
 *  Thread Starter [Marc](https://wordpress.org/support/users/marcfonteijn/)
 * (@marcfonteijn)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18421424)
 * Thanks for the suggestion [@satindersingh](https://wordpress.org/support/users/satindersingh/).
   I have fully disconnected my Stripe account (via `WooCommerce > Settings > Payments
   > Stripe > Settings> Account details > Disconnect`) and reconnected it but the
   issue still remains.
 *  [sol1au](https://wordpress.org/support/users/sol1au/)
 * (@sol1au)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18421614)
 * I worked around this by downgrading to 9.3.2.
 *  [Moses M. (woo-hc)](https://wordpress.org/support/users/mosesmedh/)
 * (@mosesmedh)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18421839)
 * Hi [@marcfonteijn](https://wordpress.org/support/users/marcfonteijn/), [@sol1au](https://wordpress.org/support/users/sol1au/),
   [@satindersingh](https://wordpress.org/support/users/satindersingh/),
 * I understand this is sudden and quite confusing but the team is aware and a quick
   workaround is to downgrade to version 9.3.2. We appreciate your patience and 
   understanding as we work to resolve this.
 *  Thread Starter [Marc](https://wordpress.org/support/users/marcfonteijn/)
 * (@marcfonteijn)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18421856)
 * [@mosesmedh](https://wordpress.org/support/users/mosesmedh/) Thanks for the update
   and hopefully there will be a quick fix! For anyone looking for 9.3.2 it’s on
   [github](https://github.com/woocommerce/woocommerce-gateway-stripe/releases/download/9.3.2/woocommerce-gateway-stripe.zip).
    -  This reply was modified 1 year, 1 month ago by [Marc](https://wordpress.org/support/users/marcfonteijn/).
 *  [Satinder Singh](https://wordpress.org/support/users/satindersingh/)
 * (@satindersingh)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18421891)
 * [@marcfonteijn](https://wordpress.org/support/users/marcfonteijn/) You can use
   rollback plugin – [https://wordpress.org/plugins/wp-rollback/](https://wordpress.org/plugins/wp-rollback/)
 *  Plugin Author [Wesley Rosa](https://wordpress.org/support/users/wesleyjrosa/)
 * (@wesleyjrosa)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18422230)
 * Hello there,
 * I am so sorry you are experiencing this issue with your website. Some minutes
   ago, we released [a new patch version](https://github.com/woocommerce/woocommerce-gateway-stripe/releases/tag/9.4.1)
   that should solve the bug you are having. Can you give it a try and let us know?
 *  Thread Starter [Marc](https://wordpress.org/support/users/marcfonteijn/)
 * (@marcfonteijn)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18425231)
 * [@wesleyjrosa](https://wordpress.org/support/users/wesleyjrosa/) I can confirm
   that the page load is back to normal on v9.4.1.
 *  [Zee](https://wordpress.org/support/users/doublezed2/)
 * (@doublezed2)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18425368)
 * Hello [Marc](https://wordpress.org/support/users/marcfonteijn/),
 * Thank you for your reply.
 * I am glad to know that the issue was resolved by updating to version 9.4.1.
 *  I appreciate your patience and understanding.
 * Have a great day!

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

The topic ‘Excessive API Calls to payment_method_configurations Causing 429 Errors’
is closed to new replies.

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

## Tags

 * [SEPA](https://wordpress.org/support/topic-tag/sepa/)

 * 9 replies
 * 6 participants
 * Last reply from: [Zee](https://wordpress.org/support/users/doublezed2/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/excessive-api-calls-to-payment_method_configurations-causing-429-errors/#post-18425368)
 * Status: resolved