Jump to content

boatcoder

Member
  • Posts

    5
  • Joined

  • Last visited

About boatcoder

boatcoder's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. In a Registrar module I have 3 fields I need filled out, but they are select lists and therefore are getting a default value, (even though I have not specified a default). I need to require the user to pick something from the drop lists rather than letting them slide by unknowingly providing the wrong information. How can I force the user to pick something? (Yes, the fields are required, but the default value makes that point moot) I could do this in HTML, but I don't get to send html to the screen, I only get to return an array that the core product turns into a select drop down.
  2. I have this definition: $additionaldomainfields[".xxx"][] = array( "Name" => "ICM Registry Membership Number", "Description" => "To purchase a .XXX domain, you must have an ICM membership. You can apply for one <a href='http://www.icmregistry.com/members/'>here.</a>", "LangVar" => "icmMembershipNumber", "Type" => "text", "Size" => 64, "Required" => false, ); And I get this in the params: "additionalfields": { "ICM Registry Membership Number": "1234567890" } Why don't I get the LangVar name instead of the human readable name? "whmcsVersion": "7.2.3-release.1",
  3. From the github example try { $api = new ApiClient(); if ($protectEnable) { $api->call('EnableIDProtection', $postfields); } else { $api->call('DisableIDProtection', $postfields); } return array( 'success' => 'success', ); } catch (\Exception $e) { return array( 'error' => $e->getMessage(), ); } It seems like returning an array with and error key would fail the IDProtectToggle, but it doesn't seem to work. No matter what the response from the Registrar, the invoice gets generated. Some tlds require extra information that we don't really have a way to pass to them, so they refuse to do privacy on those domains. Also cctlds domains like .us don't allow privacy. Why does the caller not handle the error condition? It just dumps me straight to an invoice.
  4. I'm writing a registrar module and am trying to figure out the best way to get the clientID for the logged in client that is registering a domain. I only need the client ID and the idea is to link it within our system to make looking at issues easier for our support group. Since Registrar calls don't get the request object, I need some other way to get this information.
×
×
  • 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