• Resolved Junaid TK

    (@junaid-tk)


    Hi,

    In my store, I have been given a refund for some orders, Where can I get the refunded date from the EDD payment? Where is it saved in the database? How can I retrieve the refunded date?

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

    (@misulicus)

    Hey @junaid-tk

    If you open a payment inside EDD that has a status of Refunded and look down in the Payment Notes section you will see an entry similar to this:
    admin – October 19, 2021, 14:39
    Status changed from Complete to Refunded – Delete

    That will tell you the date/time when the order’s status has change to Refunded.

    Regards

    Thread Starter Junaid TK

    (@junaid-tk)

    Great Thanks for your reply.

    I found the same from the payment detail page. But How can I retrieve the date from the order note?

    In Woocommerce we will get the refunded date by using the below code.`

    $order = wc_get_order( $order_id );
    
    // Get all refunds
    $refunds = $order->get_refunds();
    
    foreach ($refunds as $refund) {
        echo $refund->date;
    }
    

    I have checked the order notes, the order notes are just a Comment object. How can I get the exact date corresponding to the refunded status?

    • This reply was modified 3 years, 4 months ago by Junaid TK.
    Plugin Support Mihai Joldis

    (@misulicus)

    Hi again.

    Unfortunately we don’t have an easy way to retrieve that data right now. In EDD 3.0 this will be mich easier to retrieve.

    If you want to make it easier in the future for your website right now you could hook into do_action( 'edd_post_refund_payment', $this ); and add a meta value and storing the time stamp.

    That would make it easier for you in the future to just retrieve that meta value directly.
    This would only work for new refunds coming in after you create your custom code however.

    Sorry that I can’t help more right now but like I said earlier with EDD 3.0 this will be mich easier to retrieve.

    Thread Starter Junaid TK

    (@junaid-tk)

    Thanks for your reply.

    I think this date is a much-needed one for every store owner to keep the track of refunded orders and completed orders. So I would like to get this feature as soon as possible. Could you please tell me the date of the EDD 3.0 release? So that I can expect the date.

    Plugin Support Mihai Joldis

    (@misulicus)

    I don’t have a date for you right now but I believe it will be soon, probably by the end of Q1 2022.

    I am sorry that we don’t have a set date but there are still a few more issues that need work. You could keep track of the development progress here https://github.com/awesomemotive/easy-digital-downloads/milestone/164 and also on the Development blog here https://easydigitaldownloads.com/development/

    Regards

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