Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eaglehdr's avatar

Handle Stripe customers and pay methods if keys changes

Hi, i am working on a service based website. we are storing clients credit cards and vendor's bank account as payment and payout method in stripe. last week client asked me to swap my testing keys with his testing keys so that he can see payments on his account. after that I am having issues in my database. I am having error where i am fetching data using payment methods, customer id and payment intent that "source" not found (which is obvious) Now I want to handle this seamlessly so that if my client again changes API keys, users would see their orders, but they will not see their old payment method, vendors will not see their bank info in their account. is it possible?

0 likes
1 reply
eaglehdr's avatar

Another point to mention is that I already told my client that after chaning keys, he will not be able to track old records in the applicaiton

Please or to participate in this conversation.