create()
- It is a mandatory function.
- It is used at installation stage.
- If automatic installation for the product is activated and the invoice is paid, this function will be used to activate the order.
- If the return of the function fails, the order will be in process and the error message, if any, will be reported to the administrator.
Parameters
$params --- Is an array variable, gives the value of "options" index in the $order variable in the class.
You can examine the sample codes for the function content.