Registering customer from your website using Cloud Signup

Problem:


I want to register client with email and password using Cloud Signup module directly from my website.

Solution:


1. In Cloud Signup module configuration (Settings → Modules → Plugins → Cloud Signup → Edit Configuration) enable option: Allow external signups

2. On your website, in the place you wish to register customers add / customize following form:

<form action="http://URL.TO.YOUR.HOSTBILL/?cmd=cloudsignup" method="post">
<input type="hidden" name="make" value="signup" /> <br/>
E-mail address: <input type="email" name="username" placeholder="E-mail address" /><br/>
Password: <input type="password" name="password" /><br/>
<input type="submit" value="Sign Up" />
</form>

Replace: http://URL.TO.YOUR.HOSTBILL/ in code above with actual address of your HostBill installation

Pass other customer details into Cloud Signup


Optionally you can pass other customer details (like Firstname, Lastname, Address etc.) when posting data from external form into Cloud Signup.
To do so, pass additional details fields in HTML form, as per example below:

<form action="http://URL.TO.YOUR.HOSTBILL/?cmd=cloudsignup" method="post">
<input type="hidden" name="make" value="signup" /><br/>
E-mail address: <input type="email" name="username" placeholder="E-mail address" /><br/>
Password: <input type="password" name="password" /><br/><br/>

Firstname: <input type="text" name="details[firstname]" /><br/>
Lastname: <input type="text" name="details[lastname]" /><br/>
Address: <input type="text" name="details[address1]" /><br/>
City: <input type="text" name="details[city]" /><br/>
State: <input type="text" name="details[state]" /><br/>
Phone: <input type="text" name="details[phonenumber]" /><br/>
Country Code: <input type="text" name="details[country]" placeholder="US" /><br/>
Currency: <select name="details[currency]">
			<option value="USD">USD</option>
			<option value="EUR">EUR</option>
    	  </select>
<input type="submit" value="Sign Up" />
</form>

Note:

  • All details fields are optional
  • You can pass all fields in details array available in Registration Fields
  • When entering the currency in the selecta option, please provide the values ​​that exist in the HostBill installation. The value in options must be the ISO currency code.