Birdic Posted November 14, 2022 Share Posted November 14, 2022 Hello WHMCS Dev Community,Two Part Question - Part One When migrating Stripe payment tokens from one Stripe account (Source) to another Stripe account (Destination), however keeping the client accounts in the same WHMCS (Source) - will customers get charged properly via the source WHMCS account? Or, are there other changes that'd need to be made? -----Part Two What is the best practice to migrate all data (client accounts and Stripe payment tokens) in from one WHMCS (Source) into the other WHMCS account (Destination)? And the best way to do this whereas to have minimal to no impact on customers and the integrity of the client data and payment tokens maintained. ----- When reaching out to WHMCS support, their answer was:Whilst it is not possible to add the Stripe tokens directly to the database due to how they are stored, you could potentially write a PHP script to add the details to the client using classes documented at https://classdocs.whmcs.com/8.5/index.html An example script is below that should help you get started (see code snippet below). The script creates the client as well, so if you have already created the client you would likely wish to remove that and reference the existing client. They also recommended to reach out out via this community and get clarifications. Anyone have clarifications on any of this or are there any devs in this community who've performed these types of operations before? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.