Jump to content

Migrate Stripe Accounts into WHMCS


Recommended Posts

Hi,

We've just moved over to using WHMCS as our billing system and we have a number of existing customers who we charge through our Stripe account. I can get their cus_ and pm_ ID's out of Stripe and I would like to be able to add them directly to client records.

I'm guessing that this has to be done through the database. Looking at our MySQL db, I think that I have to add JSON into the form {"customer":"cus_XXXXXXXXXXX","method":"pm_XXXXXXXXXXXXX"} into  tblcreditcards.card_data

The JSON appears to have been encrypted as a BLOB . I'm happy writting MySQL queries to inject the data but how do i correctly encrypt the JSON package so that WHMCS will read it correctly.

Thanks

Kieran

Link to comment
Share on other sites

Further info if it helps:

I've tried following various posts on how to decrypt the data already stored - however we're using MariaDB not MySQL and so it seems we can't use set block_encryption_mode = 'aes-256-cbc'; 

I've tried various combinations of AES_DECRYPT but can't get anything other than a NULL result back.

Thanks

Kieran

Link to comment
Share on other sites

  • 8 months later...

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.

×
×
  • 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