A WooCommerce site I manage has recently started having issues with credit/debit card payments through WooCommerce Payments.
Every single payment fails with the following message:
In the Inspector, I get this error.
We're running a basic Block theme with some custom custom blocks, but all the WooCommerce checkout stuff should be completely vanilla.
We haven't made any code changes close to when this issue started happening, although updates could have happened in the background. I don't have exact dates for when the issue started occurring, but it looks to have been around the time WP 6.3.1 was released.
Things I have tried:
- deactivating any plugins which might affect the checkout pages
- removing and reinstalling WooPayments
I wondered whether the authentication between WooPayments and Stripe needed to be renewed somehow, but I can't see how to do this.
EDIT
Managed to access the server logs, and found this:
{
"installName": "vipreading",
"environment": "PROD",
"type": "error",
"date": "2023-09-05T08:26:42.000Z",
"severity": "notice",
"client": "178.16.9.5:0",
"message": "woocommerce_blocks_checkout_update_order_from_request is deprecated
since version 7.2.0!
Use woocommerce_store_api_checkout_update_order_from_request instead.
This action was deprecated in WooCommerce Blocks version 7.2.0.
Please use woocommerce_store_api_checkout_update_order_from_request instead.,
referer: https://www.vipreading.co.uk/checkout/",
"uuid": "6dc7a682-19df-4142-a16a-18051f40006e"
}
That seems to imply I'm using an older version of WooCommerce Blocks, which has a bug that has since been fixed. However, looking at WooCommerce > Status, I'm apparently on WooCommerce Blocks 10.6.6.
I've tried to delete the checkout page so I can let WooCommerce recreate it, but it gets recreated identically as soon as I do so, and doesn't seem to solve the problem.