by springday » Sun Oct 28, 2012 6:30 am
Hi there,
I would like to write a plugin for creating and sending an invoice / receipt (preferably in PDF format as an email attachment) right after a paypal payment has been processed. This is a requirement of our book keeping department, which says that the receipts paypal is sending out do not suffice - there's no VAT information included in them, for example.
However, I didn't even find a starting point, because I couldn't locate any hooks in the payment processing code (I've checked the files in /classes/payment, /lib/pkp/classes/payment and /plugins/paymethod), and the slightly outdated "technical reference" of OJS didn't say anything about it either. I didn't even understand how the paypal plugin is actually integrated and called.
Could somebody give me a hint about how I could integrate a plugin with the described functionality into OJS?
(In the forum when searching for "invoice" I mainly got hits for OCS. Does OCS already have an invoicing module?)
Best regards,
Kai Weber