After a payment is confirmed by the paypal pro plugin, we need to send an email to our publisher. The email must contain an attached text file with the order details. Upon receipt of the email, the publisher prints the book(s) and ships it. Shipping charges are included in the price of the book. I have a class that builds the text file in the correct format and sends the email with the attachment. However, I have to inject code into the existing payment plugin to do that. What would be a better approach? Would a custom shipping module be more appropriate? Thanks.
i think you should 'inject' your code in payment plugin (paypal) instead of shipping plugin...look for onPaymentNotification function...
Quote from: veeco on January 02, 2013, 10:56:49 AM
i think you should 'inject' your code in payment plugin (paypal) instead of shipping plugin...look for onPaymentNotification function...
There is no onPaymentNotification in the Jcpaypalpro plugin, vmPSPlugin, or vmPlugin.
sorry.. i mean plgVmOnPaymentNotification