I have a WooCommerce online store from which I want to sell software. This software comes in the form of a ZIP archive.
I would like to inject a randomly generated license key into this ZIP archive.
I have already tried the following hooks
-
woocommerce_file_download_filename
, -
woocommerce_download_file_force
, woocommerce_payment_complete
What is the best approach?