Closed
Description
Describe the bug
When the shopper is from a country supported by Klarna and the transaction isn't a domestic one, the following error gets displayed:
Checkout error | Stripe error |
---|---|
![]() |
![]() |
This error seems to be related to Klarna only accepting domestic transactions, with the exception of the EEA, UK, and Switzerland.
We already hide Klarna for unsupported customer countries, but we're not handling the domestic transaction restriction.
To Reproduce
- Connect your store to a Stripe account from a Klarna-supported country, like the US
- Enable Klarna
- As a shopper, add a product to your cart and proceed to checkout
- As the billing country, select one different from the one your Stripe account is from, like UK
- Place the order
- Notice error mentioned above is displayed and that the payment can't be completed
Actual behavior
The order can't be placed when using Klarna, even though it's displayed as an available payment method.
Expected behavior
As a shopper, I'd expect Klarna not to be displayed if it's not available. Or maybe to have a less generic error message.
Additional context
For reference, we're also seeing this behavior in the Stripe extension. woocommerce/woocommerce-gateway-stripe#3096