Hey guys, new to Nop development here, I need to trap a successful payment for an item and then fire off a call to another API (external to NOP) so that the shipping team can be notified, etc. via another Web API.... I took a look at the Nop dev docs but wasn't sure of the type of IPlugin to inherit from? IPaymentMethod or IMiscPlugin? 2nd part to that is - is there a hook of some sort to know when an item was successfully purchased?
I took a look at the Nop dev docs but wasn't sure of the type of IPlugin to inherit from? IPaymentMethod or IMiscPlugin?
IPaymentMethod is required when you are developing a payment method plugin. You can just inherit the abstract class BasePlugin and override the install and unistall method in your plugin class and use event handler OrderPaidEvent to perform the functionality you want after the order is paid.