Title: error when making the payment
Last modified: March 22, 2020

---

# error when making the payment

 *  Resolved [noremlas](https://wordpress.org/support/users/noremlas/)
 * (@noremlas)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-when-making-the-payment/)
 * It causes me an error when making the card payment in active mode. if I put it
   in test mode it works perfect. I have verified the secret and publishable product
   keys and they are correct. I use WooCommerce version 4.0.1 and WooCommerce Stripe
   Gateway 4.3.2. the error I get is:
    No such customer: cus_GgscR1GEBfjXyD; a similar
   object exists in test mode, but a live mode key was used to make this request.

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

 *  Plugin Support [Kel C. a11n](https://wordpress.org/support/users/kellymetal/)
 * (@kellymetal)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-when-making-the-payment/#post-12577546)
 * Hi there,
 * That error can occur when a Stripe customer ID exists for the user in WooCommerce,
   but does not exist in the appropriate mode in the Stripe dashboard (i.e. because
   it was created in test mode, but now you are using live mode, or vice-versa).
 * To fix this, you can either:
 * – Delete the user in WooCommerce, and then recreate the user
    – Go into the database(
   using a plugin like [WP phpMyAdmin](https://wordpress.org/plugins/wp-phpmyadmin-extension/)),
   and then find the entry in the `wp_usermeta` with that customer ID (`meta_key`
   will be `_stripe_customer_id` and `meta_value` will be the customer ID) – Contact
   Stripe support and ask them to copy the customer ID from test mode to live mode(
   or the other way around)
 * I hope that helps! Have a wonderful day!
 *  Plugin Support [Kel C. a11n](https://wordpress.org/support/users/kellymetal/)
 * (@kellymetal)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-when-making-the-payment/#post-12617322)
 * Hi there,
 * We haven’t heard back from you in a while, so I’m going to mark this thread as
   resolved. If you have any further questions, please start a new thread.
 * Have a wonderful day!
 *  Thread Starter [noremlas](https://wordpress.org/support/users/noremlas/)
 * (@noremlas)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/error-when-making-the-payment/#post-12617489)
 * sorry. if it was resolved. Thank you very much, everything is perfect, delete
   the user in the database and it’s already working.

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

The topic ‘error when making the payment’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [noremlas](https://wordpress.org/support/users/noremlas/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/error-when-making-the-payment/#post-12617489)
 * Status: resolved