Question

I see a number of issues reported that if an administrator sends a partial refund to a customer via Paypal then Magento receives an IPN that causes the whole order to be marked as Refunded (e.g. https://collaborate.magento.com/magento/topics/paypal_refunds_and_automatic_credit_memo_generated).

Is it possible to issue a partial refund by creating an Online Credit Memo within the Magento invoice view?

What is the best approach for this scenario? Please note that this applies to Paypal Standard (not Express or other integrations).

Was it helpful?

Solution

We ended up coding a module to rewrite the core IPN Model which suppresses the automatic creation of Credit Memos when a Paypal Refund is issued. Instead, it adds an Order Comment with the Paypal Transaction ID (for reconciliation) and raises an Admin Notification that the administrator should manually create an Offline Credit Memo to correlate with the monies refunded at Paypal. This allows the administrator to mark the appropriate Order Items as Refunded, apply alterations to the amount (Adjustment Fees, etc). This is now working happily in production and can be reviewed in our Github repo.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top