• Resolved pipoulito

    (@pipoulito)


    Hi,

    PLease, why after a redunded order with Stripe, the statut does not switch automatically to REFUNDED ?

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @pipoulito

    To clarify, do you mean the status of an order does not automatically switch to “REFUNDED” after a refund has been processed through the WooCommerce Stripe Payment Gateway?

    If yes, then this issue could be due to several factors. It could be a result of a communication error between Stripe and WooCommerce, or it could be a plugin conflict.

    I would recommend updating your WooCommerce and Stripe Payment Gateway plugins to the latest versions, if you haven’t already done so.

    Additionally, please can you share a copy of the following:

    • System Status Report: Navigate to WooCommerce → Status. Select Get System Report and then Download for Support.
    • Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.

    You could copy and paste your reply or share it via Mozilla Community Pastebin and share the link here. This will help us investigate further and provide you with a more accurate solution.

    Looking forward to helping you.

    Thread Starter pipoulito

    (@pipoulito)

    Hello

    yes , the status of an order does not automatically switch to “REFUNDED” after a refund has been processed through the WooCommerce Stripe Payment Gateway

    this is the report

    https://prod.pastebin.prod.webservices.mozgcp.net/FDpdK7rx

    thanks

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @pipoulito,

    yes , the status of an order does not automatically switch to “REFUNDED” after a refund has been processed through the WooCommerce Stripe Payment Gateway

    Thank you for sharing your system report. I checked the report and could not notice any issue that could be causing this behavior.

    May I ask that you please share a screenshot of the order notes section for the order you refunded?

    If you don’t already have a screenshot service installed, you can try?https://snipboard.io?or?https://skitch.com/.
    (You can share the direct link to the image as a response to this topic.)

    (Please redact any private details, including address, name, email address, transaction details, API Keys, Passwords, etc)

    Thread Starter pipoulito

    (@pipoulito)

    Hi

    sorry I dont’ understand

    do you confirm me that it should switch to refunded statut automatically or not ?
    if yes i will send you a capture

    thanks

    Saif

    (@babylon1999)

    Hello @pipoulito,

    do you confirm me that it should switch to refunded statut automatically or not ?

    From what I gathered, the plugin isn’t expected to switch the order status to refunded automatically, however, I’m not sure if that was always the case. I’ll check in with the team in case we need to look further into this, I’ll make sure to update the thread if it turns out to be a bug. :?)

    In the meantime, you can switch orders “refunded” automatically with something like this (please use it at your own risk). Kindly note that custom solutions are not something we can assist with generally per our support policy.

    add_action( 'woocommerce_order_refunded', 'update_order_status_to_refunded', 10, 2 );
    // Do the magic
    function update_order_status_to_refunded( $order_id, $refund_id )
    {
        // Update order status to "refunded"
        $order = wc_get_order( $order_id );
        $order->update_status( 'refunded' );
    }
    

    Please add it via a plugin like Code Snippets instead of your functions.php file directly.

    Hope this helps!

    Saif

    (@babylon1999)

    Hello @pipoulito,

    After discussing this with the team, it appears that the order status will only switch automatically if you refund the entire amount.

    Please let us know if you have any other questions! :?)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Refund Statut’ is closed to new replies.