Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 09/28/20 in all areas

  1. 1 point
    We are pleased to announce the release of WHMCS 8.0 to General Availability. WHMCS 8.0 marks the next major release for WHMCS. In this update, we are delivering the most highly requested open feature request today, a new look for the admin area, support for Email Delivery Services, a new Email Campaign Tool, a Professional Email & Productivity Suite reselling option in OX App Suite and more. New System RequirementsWHMCS 8.0 and above requires PHP 7.2 or later. You must be running PHP 7.2 or...View the full blog post
  2. 1 point
    wow! thanks very much!! you are a genius, thanks for your help. I want to show you what I did. https://www.loom.com/share/dcf11cb01aef4692b2db0d1d18875002 As I said before, it is a hook that shows the history of the account's funds transactions. includes, date, description and amount.
  3. 1 point
    did you use .= and not just = ??
  4. 1 point
    A module (like the one you sell and seem to be referring to), is a third party CMS. Nice try. 😉
  5. 1 point
    Right, so I am doing some python automatisation myself and was stuck on this problem for half a day, so if anyone needs info on how to send customfields param to WHMCS api with python here it is. This is a simple script to AddOrder with some custom fields in it: import requests import base64 import phpserialize # Setting up default settings identifier = "yourIdentifier" secret = "yourSecret" url = "yourAPIurl" # Making the customfields string customfieldsVALUE = base64.b64encode(phpserialize.dumps({'fieldID':'fieldVALUE', 'fieldID2':'fieldVALUE2'})) # Assigning params to a dict params = { 'identifier': identifier, 'secret': secret, 'action': "AddOrder", 'responsetype': "json", 'clientid': 'yourClientID', 'paymentmethod': 'yourPaymentMethod', 'pid': 'yourPuschaseID', 'domain': 'yourDomain', 'billingcycle': 'yourBillingCycle', 'customfields': customfieldsVALUE #this is the string that i setup above } # sending the request r = requests.post(url, params=params) answer = r.text # this returns a big string, you need to convert it into json if you want to use the answer in any way print(answer) Main thing to understand is that the API is asking for base64 encoded serialized array(or in python case a dictionary), and it wants us to use the php serialize, so to get around that we have to import custom lib(i used phpserialize), that can serialize data in php way, and use it on our array of customfield key and value pairs before we encode it with base64: customfieldsVALUE = base64.b64encode(phpserialize.dumps({'fieldID':'fieldVALUE', 'fieldID2':'fieldVALUE2'}))
×
×
  • 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