-
- 25 Posts
I still found no solution for the second question:
I'd like to set a text, which is only shown in the email (Downloadlink of the paid article).
I could use "description" for that, but with the source code the user is able to get this download link without finishing the payment process.
Is it possible, to set another variable, only within the email template?
I've logged your reported fix in the tracker:
https://github.com/Mark-H/mhPayPal/issues/4
To add a link, you could either add it directly into the image template, but it's probably better to create a snippet that you call in the postPaymentHooks property. In that snippet, add your value to the $mhpp->data array (e.g. $mhpp->data['download_link'] = '
https://site.com/download/file/123.zip';). Then you can access [[+download_link]] in your email template.