Jump to content

Stripe Payment Token Mapping and WHMCS Data Migration


Birdic

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated