• Resolved bungpm

    (@bl-solutions)


    Hi,

    I just partially refunded an order that was paid with PayPal. Apparently, when the plugin processed for notified about the successful refund through the webhook, it sets the order status to “refunded”.

    This in turn causes WooCommerce to refund the entire order:
    https://ibb.co/0ynmsNSm

    Here’s what the German texts say:

    • Order status changed from Completed to Refunded.
    • Status of the order has been set to refunded.
      To return the money to the customer, you need to issue a refund through your payment provider.

    Fortunately, the entire amount was not automatically refunded via PayPal but an email was sent to the customer which is embarrassing and caused addtl. work in customer service.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Jignesh

    (@jigneshmpatel)

    Hello @bl-solutions

    Thank you for reporting this.

    We’ll begin troubleshooting the issue right away. If we’re able to confirm it on our end, we’ll work on a fix and provide an update.

    We appreciate your patience in the meantime.

    Best regards

    Plugin Support Jignesh

    (@jigneshmpatel)

    Hello @bl-solutions,

    We’ve resolved the issue.

    Until the next official release is available, you can download the fixed version from the following link: Download Link.

    Thank you for your patience and understanding.

    Best regards

    Thread Starter bungpm

    (@bl-solutions)

    Awesome, thank you.

    I have reviewed the code change and have seen that you create a new refund entry for the order after getting the webhook from PayPal.

    However, we trigger the refund by creating a new refund entry in the order in WooCommerce in the first place. We are also setting specific items that the refund is for and add a reason for the refund.

    So I am assuming we will get doubled refund entries then? Also, the customer would get a second email about the same refund.

    Thanks again and best,

    Joern

    • This reply was modified 1 year ago by bungpm.
    Plugin Support Jignesh

    (@jigneshmpatel)

    Hello @bl-solutions,

    Thank you once again for your thoughtful feedback.

    You’re absolutely right — when a refund is initiated from the WooCommerce admin panel, WooCommerce already creates the refund entry and sends the corresponding customer email.

    To prevent any duplication, we’ve removed the code that was creating a refund entry upon receiving the PayPal refund webhook. This ensures that:

    • No duplicate refund entries are created.
    • The customer won’t receive multiple emails for the same refund.
    • Refunds initiated from either WooCommerce or PayPal are handled cleanly without overlap.

    We’ve already updated the ZIP file linked above with this correction. You can re-download it to apply the fix immediately.

    This update will also be included in the next official release.

    Best regards

    Plugin Support Jignesh

    (@jigneshmpatel)

    Hello @bl-solutions,

    Just following up — could you please let us know if everything is working as expected now after applying the updated version?
    Your confirmation will help us ensure this fix is fully resolved.

    Best regards

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Partial refund causes full refund’ is closed to new replies.