Closed Buda9 closed 5 days ago
I think that the pdf invoice should be sent from the payment gateway plugin which used to charging the wallet not the enrolment plugin.
You're right. For this it would be best to create a local plugin that uses observer.php and a library like tcpdf for generating PDFs.
Still, it seems like an interesting job to do, I'll try it in the next few days and tell you how it's going.
I believe this would be a great addition to the wallet plugin.
Here it is: https://github.com/Buda9/moodle-local_invoicepdf 🎉 At least v0.4 😅
It's not advised to use it on production site. I'm still testing all functionalities, and trying to debug why emails are not being sent even the code is pretty clear about this
@Buda9 great work, I'll take a look on it.
Since this is not related to Wallet plugin, I guess we can close it? :)
It would be awesome if we could have this. Please allow me to try first to build this feature.