Note that to call this function, you must:
- Enable the Server Property enableCreateOrder
- Set the AdminEncryptionKey
- Call DefineProduct
C#: void CreateOrderEx(string webServiceUrl, string email, int[] features, int quantity, bool useMultipleActivationsKey, string qlmVersion, string vendor, string userData1, string affiliateID, DateTime expiryDate, int expiryDuration, string orderID, int orderStatus, out string response)
Parameters
webServiceUrl - URL to the QLM License Server.
email - email address to associate to the license key - may be empty.
features - array of feature sets. Each feature set is an or'ed value of the features to enable in the feature set.
quantity - the number of licenses to embed in the key.
useMultipleActivationsKey - if set to true and quantity > 1, one license key will be generated for all required licenses. The number of licenses will be embedded in the license key.
qlmVersion - the version of the QLM Engine.
vendor - the eCommerce vendor to use when generating the key.
userData1 - user data to associate to this license.
affiliateID - ID of affiliate.
expiryDate - Expiry date of the key. Set this value to DateTime.MinValue to not set an expiry date.
expiryDuration - Expiry duration of the key. Set this value to -1 to not set an expiry duration.
orderID - order ID.
orderStatus - status of the order. Possible values are: None (0), In Progress (1), Completed (2).
response - XML fragment containing the result of the call. The Xml fragment schema is as follows:
<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<keys>A062E-9D0CC-6DC80-0D6A0-E0701-000A0;A062E-9D0CC-6DC80-0D6A0-E0701-000A0</keys>
</QuickLicenseManager>
In the event of an error, the XML fragments returns:
<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<error>Details about the error</error>
</QuickLicenseManager>
Comments
0 comments
Article is closed for comments.