johan82 Posted July 5, 2016 Share Posted July 5, 2016 Hi All I'm trying to create an order via the WHMCS api and have it add a custom url to the the invoice. I have attached a screenshot of the custom field I added for clients, named "VCS payment". I then make the api call using the ruby code below but the custom field does not appear on the invoice. I'm am obviously missing something and would appreciate some help. Screenshot: Ruby Code: payload = {"username" => @username, "password" => md5_password, "action" => "addorder", "clientid" => "1", "pid" => "1", "domain" => "cinvoicetest1.co.za", "billingcycle" => "monthly", "domaintype" => "transfer", "regperiod" => "1", "paymentmethod" => "offlinecc", "customfields" => Base64.encode64(PHP.serialize({"VCS payment" => "http://google.com"}))} result = WhmcsHttpClient.new.post("whmcs/includes/api.php", payload) 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.