• Resolved Vaibhav

    (@vaibhav9017)


    Hello All,

    I am using wooCommerce API flow to create/Update Orders. I would like to implement a functionality called Refund. When I tried to apply refund through API, I am getting error of “The payment gateway for this order does not exist.”. I am not sure How I am getting such errors.

    1. I hve used order Updated end point to apply refund, like
    2. const response = await WooCommerce.post(orders/${orderId}/refunds, refundData);
    3. However, I am gtting an erro as below. —

    Error Response like – this –
    code:’woocommerce_rest_cannot_create_order_refund’, data:500, message:’The payment gateway for this order does not exist.’

    Another error we are observing is – Getway timeout exception.

    Thank You,

    Vaibhav Bhutkar

    • This topic was modified 2 years, 1 month ago by Vaibhav.
    • This topic was modified 2 years, 1 month ago by Vaibhav.
    • This topic was modified 2 years, 1 month ago by Vaibhav.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey there, @vaibhav9017! Thanks for contacting us.

    While we can’t provide support for code customization as per our support policy, we do our best to offer advice and direct you to appropriate resources.

    You can find developer resources here and here.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    I’m going to leave it open for a bit to see if anyone is able to chime in and help you out further.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    anastas10s

    (@anastas10s)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Refund Not Processing when Applying throug API.’ is closed to new replies.