cancel
Showing results for 
Search instead for 
Did you mean: 

Can magento generate a download link dynamically from product attributes?

Can magento generate a download link dynamically from product attributes?

Hi,

 

I'm selling digital goods that are generated based on attributes provided by the user.

 

My product has 3 attributes: X, Y, Z. They are all integers from 0 to 99 that the user must provide before adding the product to the cart.

Once the order is processed and the payment is secured, I'd like the customer to receive the following link either in the confirmation screen for the order, or in an email:

 

http://mycontent-generat.or/generate/<JSON with X, Y, Z + HMAC>

 

Then my server at http://mycontent-generat.or/generate/ will take the URL, decode the filename, verify the authenticity via HMAC, extract X, Y and Z, and generate the file based on X, Y, and Z dynamically, so the user can download it.

 

Thank you for any insights on how to achieve that.

 

Best regards.

 

-- Greg