I found the bug in includes/gateways/class-wc-payment-gateay-stripe-klarna.php line 155
if ( ( $locale = get_locale() ) ) {
$args['klarna']['locale'] = str_replace( '_', '-', $locale );
}
this shut be
if ( ( $locale = get_locale() ) ) {
$args['klarna']['locale'] = str_replace( '_', '-', substr($locale, 0, 5) );
}
because i think klarna will only accept formats like “de-DE”
-
This reply was modified 4 years ago by hippo4u.