How to disable refunds for PayPal Direct?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 yıl önce
I use nopCommerce 3.50.  I go to Payments under Administration.  I see Refunds checked as active for PayPal Direct.  How do I disable this to not allow refunds?
9 yıl önce
Hi bh0526,

You cannot change this through the administration, but should change the source code of the plugin and build it again! You will need to open the PayPalDirectPaymentProcessor.cs file and change the following:

 public bool SupportRefund
        {
            get
            {
                return false;
            }
        }


Then save and build the plugin. Then you should replace the Nop.Plugin.Payments.PayPalDirect.dll file with the newly built one.

Hope that helps!
9 yıl önce
Thanks!  That worked.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.