|
Integrating your Website and Shopping Cart with your and your Customer's Control Panel
When you and/or your Customers login to their Control Panel, there are several options available to purchase various products and services that you sell. These are in the form of buttons or links either in the menu or the pages themselves. These links and buttons need to redirect to the Shopping Cart of your website.
You can specify the URL to which you and/or your Customers should be redirected when such links are clicked to buy various Products and Services. This URL should be the URL of the Shopping Cart you are using.
Integrating your and your Customer's Control Panel with your Shopping Cart
Login to your Reseller Control Panel. 1
Point to Settings and then click Control Panel Shopping Cart Integration.
You will be presented with two options for setting up the re-direction URL:
SuperSite
If you select this option, all purchase related links from within your and your Customers Control Panel will be re-directed to your SuperSite. Click on the links below (Flash Demo's) to understand what the SuperSite is and its full potential:
Custom URL
If you are NOT using the SuperSite, and have instead integrated with our platform using our API, you should choose this option.
If you select this option, you will need to specify a Custom URL (which should ideally be a URL hosted on your website), to which we will redirect you as well as all your Customers when ANY purchase link is clicked within the respective Control Panel.
Alongwith the redirection we will also pass a query string containing parameters that you can use on your website to show appropriate products and services. Details of the format of the query string can be provided as below.
Query String Format
There are two types of redirections that your Custom URL may receive:
Your Customers may click on a link for purchasing some product from within their Control Panel.
The query string in this case will be: <YOUR_SPECIFIED_CUSTOM_URL>?p=<PRODUCT>&tid=<AUTHENTICATION_KEY>&r=customer
Your company users, or you may click on a link for purchasing some Product from within your Control Panel.
The query string in this case will be: <YOUR_SPECIFIED_CUSTOM_URL>?p=<PRODUCT>&tid=<AUTHENTICATION_KEY>
The variables passed as query strings are explained as under:
p=<PRODUCT>:
This is the product which you or your Customer wants to buy. Following are the possible values of this variable:
Product (p)
Product Name
domain
Domain Name Registration
bulk
Bulk Domain Name Registration
Product (p)
Product Name
domainfwd
Domain Forwarding
mailfwd
Mail Forward
dns
Managed DNS
Product (p)
Product Name
sitebuilder
Website Builder
tid=<AuthenticationKey>:
This is a randomly generated authentication key which you MUST validate to ensure that the redirection is being made by a authenticated Customer or User. This Authentication Key is valid only for a short period of time.
On the Custom URL you specified above, you must write a script to make an API call to our system to the authenticateLoginID (<authentication key>)method of the Customer class or Reseller Class in the CoreKit, depending upon whether the "r" variable is passed as a query string. You need to pass the Authentication key as parameter to the authenticateLoginID method.
The method authenticateLoginID(<authentication key>) returns the details of the user who initiated the purchase order process from within the Control Panel, if the <authentication key> matches and has not timed out. Otherwise, an authentication failure exception will be thrown.
r=customer
This is the role of the user. This variable will be passed only in the case your Customer is initiating the product purchase process from within his Control Panel.
