Title: Cannot refund &#8211; Possible API mismatch?
Last modified: July 24, 2025

---

# Cannot refund – Possible API mismatch?

 *  Resolved [Ibby](https://wordpress.org/support/users/ibby/)
 * (@ibby)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/cannot-refund-possible-api-mismatch/)
 * Dear WC,
 * We are using the official WooCommerce Stripe Gateway plugin on a client site 
   which is showing a popup when trying to process refunds via the order details
   page in WP:
 * `An error occurred while attempting to create the refund using the payment gateway
   API.`
 * Error log: [https://pastebin.com/q29rJgS3](https://pastebin.com/q29rJgS3). I 
   have a feeling this is because the plugin is still set to API 2024-06-20 whereas
   we have recently upgraded our Stripe account to 2025-06-30.basil.
 * Please can you have a look at this? Thank you.
    -  This topic was modified 10 months, 3 weeks ago by [Ibby](https://wordpress.org/support/users/ibby/).

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

 *  Plugin Support [Frank Remmy (woo-hc)](https://wordpress.org/support/users/frankremmy/)
 * (@frankremmy)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/cannot-refund-possible-api-mismatch/#post-18569138)
 * Hi [@ibby](https://github.com/ibby),
 * Thank you for sharing the details and error log. I understand how frustrating
   it can be when refunds fail, especially without a clear error message.
 * From the log, I noticed that your plugin is using the Stripe API version 2024-
   06-20, while your Stripe account has been upgraded to 2025-06-30. Since there
   is no direct error output for the refund in the log, I’d like us to narrow down
   the issue further:
    - Is this problem occurring with all refund attempts, or is it limited to specific
      payment methods or recent orders?
    - Please switch to [Stripe test mode](https://woocommerce.com/document/stripe/customer-experience/testing/#enabling),
      make a test purchase, and then try to process a refund.
    - I recommend temporarily rolling back your Stripe account’s API version to 
      2024-06-20 in the Stripe dashboard under **Developers > API Version**, and
      then attempt the refund again.
    - **Share your System Report** by navigating to **WooCommerce → Status → Get
      system report**, and paste it here. This will help us confirm your environment,
      plugin versions, and active integrations.
    - Lastly, please switch to a default theme (like Storefront) and deactivate 
      all plugins except WooCommerce and Stripe: [https://woocommerce.com/document/how-to-test-for-conflicts/](https://woocommerce.com/document/how-to-test-for-conflicts/).
      Retry the refund process; this can help identify if another plugin is interfering
      with Stripe’s refund logic.
 * Let us know what you find. I look forward to your response.
 *  Plugin Author [Diego](https://wordpress.org/support/users/diegocwp/)
 * (@diegocwp)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/cannot-refund-possible-api-mismatch/#post-18570023)
 * Thanks for reporting this [@ibby](https://wordpress.org/support/users/ibby/).
 * > Since there is no direct error output for the refund in the log, I’d like us
   > to narrow down the issue further
 * Can you search your logs for something like this?
 *     ```wp-block-code
       2025-07-24T19:18:53+00:00 Debug ====Stripe Version: 9.7.0========Stripe Plugin API Version: 2024-06-20========Start Log====Info: Beginning refund for order ch_3Ro7lYDvfveaW3vJ25vxuH1E for the amount of 10.00====End Log====...
       ```
   
 * And then the actual response, which looks like this (“refunds response”):
 *     ```wp-block-code
       2025-07-24T19:18:54+00:00 Debug ====Stripe Version: 9.7.0========Stripe Plugin API Version: 2024-06-20========Start Log====refunds request: Array(    [amount] => 1000    [charge] => ch_3Ro7lYDvfveaW3vJ25vxuH1E)====End Log====2025-07-24T19:18:56+00:00 Debug ====Stripe Version: 9.7.0========Stripe Plugin API Version: 2024-06-20========Start Log====refunds response with stripe-version: 2024-06-20====End Log====...
       ```
   
 *  Thread Starter [Ibby](https://wordpress.org/support/users/ibby/)
 * (@ibby)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/cannot-refund-possible-api-mismatch/#post-18573823)
 * Hi guys,
 * Thanks for the replies. While we would have loved to debug this further, the 
   client was getting frustrated so we have switched to another gateway for now.
 * Will feed back if we get the chance to look into it again in future.
 * Thank you both.
 *  [LovingBro (woo-hc)](https://wordpress.org/support/users/lovingbro/)
 * (@lovingbro)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/cannot-refund-possible-api-mismatch/#post-18573851)
 * Hi [@ibby](https://wordpress.org/support/users/ibby/),
 * Thanks for the update. While it’s a bit unfortunate to hear that the issue couldn’t
   be resolved in time, we completely understand the need to keep things moving 
   when working with clients under pressure. If you do return to using the WooCommerce
   Stripe Gateway in the future and run into the same issue or need further support,
   don’t hesitate to reach out — we’ll be here to help.
 * I’ll go ahead and mark this thread as resolved for now. If you have any other
   questions down the line, feel free to open a new topic.
 * If the WooCommerce Stripe Gateway has been helpful to your store overall, we’d
   really appreciate it if you could leave us a quick 5-star review here: [https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/#new-post](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/#new-post)
 * Wishing you all the best with your current setup!

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

The topic ‘Cannot refund – Possible API mismatch?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-stripe/assets/icon-256x256.png?rev=3177277)
 * [WooCommerce Stripe Payment Gateway](https://wordpress.org/plugins/woocommerce-gateway-stripe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-stripe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [LovingBro (woo-hc)](https://wordpress.org/support/users/lovingbro/)
 * Last activity: [10 months, 2 weeks ago](https://wordpress.org/support/topic/cannot-refund-possible-api-mismatch/#post-18573851)
 * Status: resolved