Jump to content
  • 0

Provisioning Module ChangePackage function


RstsTeam

Question

Hello,

I have question about ChangePackage for provisioning module. Trying to get customfields for it and it's not working. Maybe only configoptions work in this case?

Any help or example is appreciated .

Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

function provisioningmodule_ChangePackage(array $params)

{

    try {

        // Call the service's change password function, using the values

        // provided by WHMCS in `$params`.

        //

        // A sample `$params` array may be defined as:

        //

        // ```

        // array(

        // 'username' => 'The service username',

        // 'configoption1' => 'The new service disk space',

        // 'configoption3' => 'Whether or not to enable FTP',

        // )

        // ```

    } catch (Exception $e) {

        // Record the error in WHMCS's module log.

        logModuleCall(

            'provisioningmodule',

            __FUNCTION__,

            $params,

            $e->getMessage(),

            $e->getTraceAsString()

        );

 

        return $e->getMessage();

    }

 

    ret

urn 'success';

}

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
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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