This is about how to setup token type product.
Required settings as token type
It is required to generate the token when the purchased is completed.
The product without the settings following is not token type.
You can see “Token” appended besides the product type checkboxes like “virtual” and “download”, please mark this checkbox “Token”.
The timing which generate token is when the condition of the order is “Completed” and by WooCommerce settings, you can automate the order status proccess to change it into “Completed” after the payment is done by marking product type both of “Virtual” and “Token”.
You can sell 2 types of tokens by this plugin.
One is “Validation Token” which is used to be validated by server, which is main feature of this plugin.
Other one is “Update Token” which extends the expiry of the “Validation Token” which has the same validation value.
You can choose either one for each product, as default, “Validation Token” shows in the select box.
Main token of this plugin which is used to be validated by server.
Settings field is different from other one, please regard.
Validation Token has setting of its value to be verify if the hashed value is the same one.
Please set a little long unique string which is hard to assume.
After you save the product settings, you can see the hashed value below the value setting field, which you can copy and use for requesting the validation to server.
Validation Token has setting of its expiry in day.
If you set “1” then the purchased token will be expired in 1 day passed after the order is completed. “7” then “7 days” after the complete.
As condition of the complete of order, it depends on WooCommerce settings. If you setup the timing is after the payment is done, then expiry is counted from the point.
If you make it empty, the purchased token will not be expired.
Update Token can extends the Validation Token which has same value as itself’s.
Validation Token Value
Target value of the validation token whose expiry will be extended.
You can select one of the values of registered validation tokens in the select box.
It is restricted the Validation Token whose expiry can be extended. Only of the same value.
You can set expiry in day to be extended.
When the customer updates the validation token while the token is not expired, the expiry of the validation token will be extended from the date of its expiry.
If it is already expired, the expiry will be extended from the date you update.