• Resolved nelsonamaya

    (@nelsonamaya)


    Hi @karzin,

    After trying to refund a suborder via Stripe, I get this error:

    “An error occurred while attempting to create the refund using the payment gateway API.”.

    It works fine when I refund from a main order, however I need to do the refund directly in the suborder as the partial refunds in main orders are not synched with the suborders.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nelsonamaya

    (@nelsonamaya)

    Hi @karzin,

    I found the issue, it’s because the suborders don’t have the _transaction_id value. I fixed it by doing this in the woocommerce_thankyou action:

    update_post_meta( $suborder_id, '_transaction_id', $main_order->get_transaction_id() );

    Hi,

    Sorry for the delay and thanks for the feedback. I just updated to version 1.2.4 with this fix ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Refund via Stripe not working on Suborders’ is closed to new replies.