bryyyon Posted August 11, 2010 Share Posted August 11, 2010 I am attempting to create an order form that is completely external from a WHMCS installation, using the API. Is it possible to specify a hosting account's cPanel username and/or password during the `addorder' API call? Also, I cannot find any documentation on how the call's `configoptions' attribute should be structured. I understand the base64 encoded / serialized array, but what should the array contain? Is this documented anywhere? http://wiki.whmcs.com/API:Add_Order Thank you for any provided insight regarding this. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted August 11, 2010 Share Posted August 11, 2010 I would imagine it should contain the configurable option id and the value. Something like: $postfields["configoptions"] = base64_encode(serialize(array("4"=>"value", "5"=>"test"))); 0 Quote Link to comment Share on other sites More sharing options...
deckhoff Posted December 1, 2010 Share Posted December 1, 2010 I'm stuck at this place as well and was wondering if you ever managed to solve this problem? I would imagine it should contain the configurable option id and the value. Something like: $postfields["configoptions"] = base64_encode(serialize(array("4"=>"value", "5"=>"test"))); 0 Quote Link to comment Share on other sites More sharing options...
Guest benpotter1991 Posted February 28, 2012 Share Posted February 28, 2012 I am attempting to create an order form that is completely external from a WHMCS installation, using the API. Is it possible to specify a hosting account's cPanel username and/or password during the `addorder' API call? Also, I cannot find any documentation on how the call's `configoptions' attribute should be structured. I understand the base64 encoded / serialized array, but what should the array contain? Is this documented anywhere? http://wiki.whmcs.com/API:Add_Order Thank you for any provided insight regarding this. Did you have any success with this? I could do with knowing if you can and how you would do it! 0 Quote Link to comment Share on other sites More sharing options...
Stephenitsg Posted October 22, 2012 Share Posted October 22, 2012 That worked great BTW ! Here was mine (Config options 9 and 10): $options = base64_encode(serialize(array("9"=>$number1, "10"=>$number2))); $values = array('clientid' => $uid, 'pid' => "50",'configoptions' => $options,'paymentmethod' => "paypal"); $results = localAPI('addorder',$values,'adminuser'); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.