After purchasing software the customer should receive by e-mail a special key for registering the program. There are two ways of generating the registration key: HTTP-request - a request to the code-generator is sent. For HTTP-request you can set the fields that will be sent to the code-generator, the method and the address by which they will be sent. The fields can also be set in the program. The list of keys - the key is taken from a set list of keys. For the list of keys a list of available keys is created. When editing the details of a certain program the author may set the interface for generating the key. You can modify interfaces in the «Keys» section. If the delivery of order is permitted, then the one who is responsible for the order (site or author) will see in the order details a form for generating the key with the set values of fields. After the generation of the key the letter to the client can be sent, using a set template. The generated key can be fixed in the list of the used keys (specifying when and for which order it was given out). Currently the generation of the registration keys is working in the nonautomatic form and is made in the following way: 1. In the «Mail» section you can set the template of the letter in which the registration information will be specified. This letter will be sent to the user by e-mail. When creating the event it is necessary to indicate its type - «Registration info». 2. The interface for the code-generator is set in the section «Keys».
For the list of keys you enter the list where each line is a key. For the HTTP-request you enter the address of the generator (URL), method and the list of the sent fields. In the fields' values you can use variables, same as in the letter template (their list is given in this form). Values of variables are taken from the contact information given in the order, registration info and the user's account. In the field «Letter template» it is necessary to select the letter template the generator will be connected with. Additionally you can set the variables that will be used in the template when sending the letter. #REGISTRATION_KEY# is a predetermined variable. This variable (and also the variables you entered) can be used in the letter template. 3. In the «Programs» section the concrete program is connected with the interface for the code-generator. Additionally you can set the fields, sent in the request, for this program. 4. If the delivery of the order is permitted and the author is responsible for it, then the form for key generation will appear in the order details. For the type «List of keys» a list of keys will appear with the opportunity to take the next key or enter a new one; for the type «HTTP-request» an HTML-form will appear with the fields specified in the interface settings (with the values from the order entered). The result of processing the request by the generator will be open in the new window after pressing the button. As the request is in fact sent by the browser, all the methods of the authorization, supported by the browser, are available. Basic authorization can be used if in the interface setting you specify URL in the format: http://user:password@url. If you don't indicate login/password, the browser will itself ask for them. URL can start from https:// if the browser supports SSL. If it is necessary to fix the given key you need to set the corresponding check-box. In the field REGISTRATION_KEY it is necessary to enter the value of the key (usually placed in the clipboard in the generator window). If a letter is sent to the user then in the bottom of the page you will be able to look through the text of the letter. 5. If the given key is fixed it is added to the list of used keys indicating the date of usage and order number. |