Jump to content

function declaration for module - need help


cluster

Recommended Posts

can someone help to make these whmcs declarations compatible with blesta?
I've already adapted the first two for reseller_name & reseller_pass ...

        return apiRequest($params, [
            'reseller_name' => $params['user'] = $this->user_name,
            'reseller_pass' => $params['password'] = $this->password,
            'domain'        => $params['domain'],
            'hp_name'       => $params['configoption1'],
            'admin_name'    => $params['username'],
            'admin_pass'    => $params['password'],
            'fname'         => $params['customer']['firstname'],
            'lname'         => $params['customer']['lastname'],
            'firm'          => $params['customer']['companyname'],
            'zip'           => $params['customer']['postcode'],
            'city'          => $params['customer']['city'],
            'state'         => $params['customer']['state'],
            'country'       => $params['customer']['countryname'],
            'email'         => $params['customer']['email'],
            'phone'         => $params['customer']['phonenumber'],
            'street1'       => $params['customer']['address1'],
            'street2'       => $params['customer']['address2']
        ]);

 

Link to comment
Share on other sites

are my Blesta declarations correct in this part?

            'reseller_name' => $params['user_name'] = $this->user_name,
            'reseller_pass' => $params['password'] = $this->password,
            'action'        => 'create',
            'domain'        => $params['domain'],
            'hp_name'       => $params['package_name'],
            'admin_name'    => $params['username'],
            'admin_pass'    => $params['password'],
            'fname'         => $params['client']->first_name,
            'lname'         => $params['client']->last_name,
            'firm'          => $params['client']->company,
            'zip'           => $params['client']->zip,
            'city'          => $params['client']->city,
            'state'         => $params['client']->state,
            'country'       => $params['client']->country,
            'email'         => $params['client']->email,
            'phone'         => $params['client']->telephone,
            'street1'       => $params['client']->address1

 

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.

Loading...
×
×
  • Create New...