Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    Did you happen to delete the customer in the stripe dashboard, or maybe switch stripe accounts, or api keys or something like that?

    There’s currently a button on the settings page to delete test data, so if you’re in test mode and don’t mind losing saved credit card data for all test customers then you can click that and it will fix your problem.

    I’m planning on adding some more ways to delete saved data in the future including live data and per user, but that doesn’t exist yet.

    Let me know if that fixes it, thank you.

    Thread Starter peterbelsky

    (@peterbelsky)

    Thanks Stephen,

    this all is going down in live mode… I did delete saved data in in woo->stripe, which did not seem to help. I also did delete the customer in stripe dashboard.. thinking that would reset things.

    I also deleted my admin account, and created a new one

    same trouble ?

    do you think this is on the woocommerce side of things, or on the stripe account side of things ?

    Plugin Author Stephen Zuniga

    (@stephenzuniga001)

    Well, the way it works is the Stripe customer id is saved in the WordPress database and used for subsequent purchases. If the customer is deleted in Stripe, then the id in the WordPress database no longer references a valid customer and that will give you the “no such customer” error.

    So, in that case what we could do currently is remove the reference in WordPress and start from scratch with a new Stripe customer. The problem being that in the current WordPress version of the plugin (1.24) I only added a button to delete test data site wide. In the github version, there are now buttons to delete test and live data per individual user (in the profile section). It’s experimental, but it might fix your issue for now.

    In the future I’d like to add better error handling so if a customer doesn’t exist, it automatically creates a new one and deletes the old reference. That might happen for the next release, but I’m not making any promises.

    Let me know if the github version works for you and adds those 2 buttons at the bottom of the profile page.

    Thread Starter peterbelsky

    (@peterbelsky)

    got it… THANKS!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error: No such customer: cus_4fzayHWGyaAZ6F’ is closed to new replies.