Jump to content

Provisioning Module


p30tec

Recommended Posts

Hello

I'm trying to create new server module

I have a problem in order status , for example in mymodule_CreateAccount($params) when I return $result='success'; WHMCS show

Order Accepted

The order has now been successfully activated

 

But order status is "Pending" , How can I change this to "Accept" ? I try API and Database Query but I fail

Help me in this code plz

Link to comment
Share on other sites

Let me explain more

 

here is a part of my code

function mymodule_CreateAccount($params) {

//Some code here

$successful = true ;

if(!create_account($params["username"],$params["password"])){successful=false;}

if ($successful) {

$result="success";

} else {

$result = "An Error Occurred in Activation! ";

}

 

return $result;

}

 

In admin panel > Manage Orders when I press "Accept order" account create and whmcs return

Order Accepted

The order has now been successfully activated

but Status is Pending? Why ?

 

When you press create, regardless of the products status it will create the account. This is normal behavior and is typical in all server modules. If the creation fails set $result to an error message.

I have no poblem with this , my problem is

When status is "Pending" and I press "Accept order" account will create but and WHMCS show

Order Accepted

The order has now been successfully activated

But Status is "Pending" instead of "Accept"

Edited by p30tec
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