• Resolved noremlas

    (@noremlas)


    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 kellymetal a11n

    (@kellymetal)

    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), 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 kellymetal a11n

    (@kellymetal)

    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

    (@noremlas)

    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.