woocommerce/woocommerce-gateway-stripe

[Klarna] Improve messaging when returning to the block checkout on failure

Closed this issue · 2 comments

Describe the bug

When the order amount is too high for Klarna to be processed, no error message is displayed on the Block checkout page when returning to the store.

This may be happening for other APMs that use redirection.

To Reproduce
Steps to reproduce the behavior:

  1. On the WooCommerce settings page, set a page using the block checkout as the main Checkout one, at wp-admin/admin.php?page=wc-settings&tab=advanced
  2. Publish a product that costs USD 10.000
  3. Enable Klarna, under the Stripe settings page at wp-admin/admin.php?page=wc-settings&tab=checkout&section=stripe&panel=methods
  4. As a shopper, add this product to the cart and go to the checkout page
  5. Select Klarna and place the order
  6. On the Klarna site, you'll see an error stating you can't use Klarna for this order. Click on the main button to go back to the store
  7. When you're back on the store, notice no error message is displayed
GsqHR0.mov

Expected behavior
As a shopper, I'd expect to see a message on the store when I'm taken back to it after a failed payment attempt.

I think this is related to #3060

Closing this as the issue is present only in classic themes, e.g. Storefront, and not in block themes, e.g. Twenty-Twenty-Four. Rubik has been pinged, and a similar woocommerce issue already exists.