Stripe recurring profile doesn't migrate when moving customer #9647
Labels
type-improvement
workflow-needs-replication
workflow-pending-triage
Items that need to be triaged and reviewed before they are worked on.
Bug Report
Expected behavior
There are many times when an account will have a typo on it; the person no longer exists, someone has changed in the company, etc. This means I have to create a new customer/user ID and move everything over to it. The problem is, the recurring profile for Stripe doesn't seem to automatically get moved over.
If I have created a new customer along with a new user ID, I would assume changing the customer on a purchase record would also move the recurring profile along with it.
Actual behavior
Typically the Stripe record shows on the following URL under "Recurring Profiles."
However, when creating a new customer/user ID and then updating the customer attached to it, the Stripe recurring profile is no longer there. It's still attached to the old user ID.
Steps to reproduce the behavior
Typically a way to fix this manually is to search for the recurring profile ID in
wp_usermeta
using%LIKE%
since it will be inside a serialized array, then you have to update the user id to the new one.Information (if a specific version is affected):
PHP Version: 8.1
EDD Version (or branch):
WordPress Version: 6.2.1
Any other relevant information:
Perhaps there is a better way to move everything from a customer/user ID to a new account, and I'm missing something. But the above seems like a bug.
Happy to provide any additional information if needed.
Thanks
The text was updated successfully, but these errors were encountered: