Okay
  Public Ticket #3978380
Refunds Not Correctly Reflected in Earnings and Available Balance
Closed

Comments

  •  7
    Barni started the conversation

    Hello WebWizards Team,

    I noticed an issue regarding refunds in MarketKing.
    When a refund is issued and approved, it is not correctly reflected in the vendor's earnings and available balance — the refunded amount is still included as if the sale had not been reversed.
    Could you please check and correct this behavior?

    Thank you very much for your support!

  •  2,406
    WebWizards replied

    Hi Barni,

    I understand you're seeing an issue where refunded amounts are still showing in vendor earnings and balances.

    Could you please confirm whether the order status has been changed from "Completed" to "Refunded" in WooCommerce? This status change is what triggers the adjustment of vendor earnings and balances in MarketKing.

    If the order status hasn't been changed, that would explain why the vendor earnings haven't been updated. Once the status is properly changed to "Refunded", the system should automatically reverse the funds in the vendor's earnings and available balance.

    Let me know if the order status is set correctly, and we can investigate further if needed.

    Kind regards,
    Stefan

  •  7
    Barni replied

    Hi Stefan,

    thank you very much for your quick response!
    Yes, once I change the order status in WooCommerce to "Refunded," the vendor balance updates correctly – thanks for confirming that.

    May I ask a further question:
    Would it be possible to automate this process?
    Specifically:

    • Once a vendor approves a refund, the WooCommerce order status would automatically change to "Refunded," and the vendor balance would be updated accordingly,

    • without the admin having to manually click "Refunded" in WooCommerce?

    Or is this manual step perhaps necessary because I am using COD as the payment method for "Purchase on Account"?
    I noticed that "Purchase on Account" doesn't appear as a separate payment method in our setup.
    If there is a way to configure this that I might have missed, would it then also be possible to automate the status change in WooCommerce when a refund is approved in MarketKing?

    Thanks again for your support!

    Best regards,

  •  2,406
    WebWizards replied

    Hi Barni,

    This does depend on the payment gateway.

    -> With the Stripe Connect gateway, the plugin can automatically refund the money via Stripe.

    -> With other gateways, the way it works is that the vendor first approves the refund, and then the admin would have to actually refund the money.

    For example let's imagine we have an order that was paid by PayPal. The site admin is the one who actually received the money (and owes a payout to the vendor later). So the vendor cannot refund the money as the money is with the site admin - this is why there are 2 steps and why the admin has to be the one who finalizes that refund.

     

    Can you clarify a bit about your setup: How would customers actually receive the funds back? I'm not sure what 'purchase on account' represents.

    I'm just trying to make sure we're not creating other issues - because usually you would want to set the "refunded" status when the funds have actually been sent back.

    I think we can write a code snippet to force change the status to 'refunded' when vendors approve refund requests.

     

    Kind regards,

    Stefan

  •  7
    Barni replied

    Hi Stefan,

    Thanks for the detailed explanation.

    I'll double-check everything on my end and get back to you shortly.

    Best regards,
    Barni