We have integrated PayPal with our WordPress WooCommerce site using the “WooCommerce PayPal Payments” plugin. However, we are encountering an issue where refunds processed through PayPal are updating the refund status and amount in WooCommerce orders. I want to stop this Updating the order in woo commerce.
It’s standard for the plugin to synchronize refund details with WooCommerce to maintain accurate and consistent records across both your PayPal account and WooCommerce orders.
However, I understand that there might be unique scenarios where you prefer these updates not to occur automatically. Could you please provide more details about your specific use case? Understanding the reasons why you wish to disable this automatic update will help us explore workarounds that may be appropriate.
It seems that PayPal sent the necessary information to WooCommerce,
When the refund is triggered at PayPal, a webhook is sent to the shop.
which then made the appropriate corrections
The webhook contains the information used by the plugin to update the order with the refund details.
and generated a new order file.
Typically, when a refund is processed, it should not create a new order in WooCommerce.
Could you please confirm if a new order is indeed being created, or if the existing order is simply being updated with the refund details? This clarification will help us provide more accurate assistance.
@inpsydekrystian I mean A new file was created/generated in our ERP system, not Woo Commerce because when order is refund from the PayPal it send transaction id to Woocommerce. and it’s causing issue in our ERP system
When the refund is processed, the transaction ID in the order is updated. This is a normal process and if the ERP system creates a new order/file when it happens, it is more a problem with the ERP system than with the plugin.
A short-term workaround would be to unsubscribe from the PAYMENT.CAPTURE.REFUNDED webhook event from the REST App in the PayPal developer dashboard, but then WooCommerce orders would not be updated anymore after refunds at PayPal and the plugin would eventually resubscribe to it, e.g. during plugin updates.
However, there isn’t an immediate solution, and these issues should likely be reported to the ERP solution developers.