Jump to content

Service Module to set 'username'


PhilB

Recommended Posts

Hi,

 

I'm trying to make a module integration that works like so:

 

User pays for service

Random pin is generated

Random pin emailed to user by WHMCS

 

The problem I have is that "username" and "password" appears to be pre-set by WHMCS (and passed in as part of the $params array) and there's no way to communicate back a 'username' (in this case, the pin) to WHMCS.

 

Do I have to manipulate the WHMCS database directly myself when I generated the pin or is there a mechanism I'm missing?

 

I take it returning "success" is interpreted and replaced by WHMCS with the stock success message rather than literally returning the text "success", right? (If not, how would WHMCS know when a service was actually created successfully when all it gets back is a string and there's no method for 'checkExists' or similar)

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.

  • 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