• Resolved vaibhavshukla31

    (@vaibhavshukla31)


    While processing the woocommerce refund an error alert is showing saying that error while processing refund.
    On checking woocommerce error log it is showing this error:
    2023-06-08T06:00:05+00:00 INFO Error processing refund. Reason:
    2023-06-08T06:29:50+00:00 ERROR API error: Array
    (
    [url] => https://api-m.paypal.com/v2/checkout/orders
    [method] => GET
    [http_status] => 404
    [request] =>
    [error] =>
    )

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @vaibhavshukla31

    Based on the URL, it looks like the PayPal Order ID isn’t part of the WooCommerce order metadata.

    When the PayPal plugin processes a payment, it adds the PayPal order ID to the WooCommerce order’s metadata. When processing a refund, the plugin has a validation check to ensure that PayPal Order ID exists.

    In this case, it seems that PayPal order ID is blank for some reason. Do you know if that order’s metadata has been manually edited?

    Kind Regards

    Thread Starter vaibhavshukla31

    (@vaibhavshukla31)

    The paypal order id or transaction id is present in the order meta data. This error for refund is occuring for every order we try to refund.
    Earlier it was working fine but now there is error while processing the refund for every order we try to refund through paypal button on order details page.
    There is no conflict with other plugins as well.
    Please share with me some way to send you the video recording for your better understanding.
    Please reply back as soon as possible.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @vaibhavshukla31

    Earlier it was working fine but now there is error while processing the refund for every order

    That’s a strong indication that something has changed on your site then. You might have a plugin installed or some custom code that’s using the WooCommerce metadata filter incorrectly. In the error logs, the order ID is showing as blank, which indicates there’s something affecting the retrieval of that value.

    The plugin wouldn’t just randomly stop working unless something changed on your site.

    You can downgrade the plugin to a previous version and I am confident you will have the same issue. That will be a strong clue that the issue is related to some other change on your site.

    Please share with me some way to send you the video recording for your better understanding.

    You can share a Loom video if you like.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error while processing refund’ is closed to new replies.