You are Developer

Integrate with clicktopurchase® Widget API.
A tool for estate agents and property websites.

STEP 1: Where do I get my CA code?

Go to your 'MyAccount | ManageDomains' and add your website domain. The first time you do this, you will get a generated CA code.

Your code will look like this: CA-2951610091519ec5af12
Paste this code, or your code in the textbox below to test how the widget loads.

Example:

share icon

Add this script to your website

                  
                    <script src="http://clicktopurchase.com/API/CACODE"></script>
                  
                

The script enables the JavaScript API.

The API exposes useful functions for you to better integrate with clicktopurchase®.

Complete Step 1 above before trying the samples.

  • showApp() - Opens the Widget Application (slides in from right) TryIt
  • showProperty() - Opens the Widget Application to the property list TryIt
  • showProperty(PACode) - Opens the Widget Application to the propertyTryIt

See the JS documentation for more.


Enable a Link

You can enable a link by using a standard <a> tag.

                         
                  <a href="#" onclick="CAPI.showProperty('propertyid')">clicktopurchase</a>      
                
              

Example:

clicktopurchase

ICON

                    
                    <div data-propertyshare="propertyid"></div>     
                  
                

Example:


Property Name, Address and Price

                              
                    <div data-property="propertyid" data-propertydisplay="basic"></div>     
                    
                

Example:

4 bedroom Spanish Villa

25 Pandora Avenue,
Langeville,
Barcelona


Property Image, Property Name, Address and Price

                      
                    <div data-property="propertyid" data-propertydisplay="full"></div> 
                   
                

Example:

4 bedroom Spanish Villa

25 Pandora Avenue,
Langeville,
Barcelona