fmido88 / moodle-enrol_wallet

Enrollment using wallet credit with coupons and using payments gateways with restrictions.
Other
3 stars 1 forks source link

Improvement: Send pdf invoice to user via email #32

Closed Buda9 closed 5 days ago

Buda9 commented 4 weeks ago

It would be awesome if we could have this. Please allow me to try first to build this feature.

fmido88 commented 3 weeks 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.

Buda9 commented 3 weeks ago

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.

Buda9 commented 3 weeks ago

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

fmido88 commented 3 weeks ago

@Buda9 great work, I'll take a look on it.

Buda9 commented 5 days ago

Since this is not related to Wallet plugin, I guess we can close it? :)