• Resolved Kooyaya

    (@kooyaya)


    Hi,

    Is it possible to stop the automatic refund when an order is cancelled? The refund amount is prorated based on our policy, and we would refund via Stripe/bank directly, also not by shop_manager who can cancel the orders.

    If it cannot be configured, I appreciate any advice on hooks.

    Thanks,
    Huaqing

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

    (@mrclayton)

    Hi @kooyaya,

    This is not a configurable option at the moment. You will need to remove the hook using the following code (test before implementing):

    add_action('woocommerce_init', function(){
        remove_action('woocommerce_order_status_cancelled', 'wc_stripe_order_cancelled');
    }, 99);

    This will prevent the plugin from processing a refund if the order is cancelled.

    Kind Regards,

    Thread Starter Kooyaya

    (@kooyaya)

    Thank you so much, @mrclayton ! I’ll give it a try.

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