Support » Plugin: WooCommerce Stripe Payment Gateway » Error: The source is attached to a different customer

  • Resolved treasureseason



    I’ve been using your plugin without an issue for years now, but ever since re-creating my client’s eCommerce site, a few of their ongoing clients have been unable to complete their orders. I checked the error log and I see the following:

    [message] => The source src_1CgfgfOpBdfCrP is attached to a different customer cus_Dsgdg7dg66xqw. Please charge the source using that customer.
    [param] => source
    [type] => invalid_request_error

    I spoke with Stripe support and it sounded like they were telling me to add some code in order to re-assign that specific customer to a new source. I found similar info here:

    Do you guys have any advice in dealing with that type of error? If I do customize the plugin by reassigning that customer to a new source, where should I put this code?

    Thank you! any help will be strongly appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support AW


    Automattic Happiness Engineer

    Hey there!

    You would want to use the hooks listed here to basically delete or reassign the sources that are messed up.

    You would use that code typically in the functions.php file of your site. If you need further help in development using this, We highly recommend contacting one of the services on our Customizations page (

    Plugin Support Shane Eckert


    Automattic Happiness Engineer


    We have not heard from you in awhile. I am going to mark this thread as resolved. If you still need assistance please open a new thread.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error: The source is attached to a different customer’ is closed to new replies.