Title: Error &#8220;No such paymentmethod&#8221;
Last modified: March 24, 2021

---

# Error “No such paymentmethod”

 *  Resolved [michela.tkt](https://wordpress.org/support/users/michelatkt/)
 * (@michelatkt)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-no-such-paymentmethod/)
 * I changed my stripe account, replacing the Live Publishable Keys and Live Secret
   Keys with the new ones.
    With the old account everything worked, but with the
   new one it returns the error Payment Failed (No such paymentmethod: ‘pm_1IYRsYLbKJZdsTwXQpKjYuKc’;
   a similar object exists in live mode, but a test mode key was used to make this
   request.). I also tried to make the purchase with a new user. The keys are correct.
   I cleared both client and server caches.
 * UPDATE: my mistake, it was not a software problem
    -  This topic was modified 5 years, 2 months ago by [michela.tkt](https://wordpress.org/support/users/michelatkt/).

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

 *  Plugin Author [WebToffee](https://wordpress.org/support/users/webtoffee/)
 * (@webtoffee)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-no-such-paymentmethod/#post-14231378)
 * Hi [@michelatkt](https://wordpress.org/support/users/michelatkt/),
 * Glad that you were able to identify the issue. Feel free to revert if anything
   else.
 *  [jaykibbee](https://wordpress.org/support/users/jaykibbee/)
 * (@jaykibbee)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-no-such-paymentmethod/#post-14241296)
 * Hello [@michelatkt](https://wordpress.org/support/users/michelatkt/)
    May I please
   ask you WHAT your solution was to your initial issue?
 * I’m having a very similar issue.
    Thank you in advance, Jay
 *  Thread Starter [michela.tkt](https://wordpress.org/support/users/michelatkt/)
 * (@michelatkt)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/error-no-such-paymentmethod/#post-14241892)
 * [@jaykibbee](https://wordpress.org/support/users/jaykibbee/) it wasn’t an error,
   I had wrong codes.

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

The topic ‘Error “No such paymentmethod”’ 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/)

## Tags

 * [payment error](https://wordpress.org/support/topic-tag/payment-error/)

 * 3 replies
 * 3 participants
 * Last reply from: [michela.tkt](https://wordpress.org/support/users/michelatkt/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/error-no-such-paymentmethod/#post-14241892)
 * Status: resolved