Jump to content

function declaration for module - need help


Recommended Posts

Posted

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']
        ]);

 

Posted

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

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...