Yes, you can use Avangate or any other payment processor that is properly designed (i.e. has a "notification" or callback system of some sort). You can use Avangate's IPN (instant payment notification) API.
Just modify our pre-written examples to use the Avangate API.