Title: Not matching fields error
Last modified: March 6, 2024

---

# Not matching fields error

 *  Resolved [vlasin](https://wordpress.org/support/users/vlasin/)
 * (@vlasin)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/not-matching-fields-error/)
 * Hi there, 
   I am using your plugin successfully for quite some time but recently
   I came across a weird problem where if I create an order with different billing
   and shipping details and I run into the error **Not matching fields: [shipping_address.
   given_name, shipping_address.family_name]**So if I use a different shipping given
   name and shipping family name from billing given name and billing family name,
   I cannot complete and order no matter the Klarna payment method I chose. I have
   checked the Klarna logs and data seems to be transferred correctly.Do you have
   any insights ? Looking forward to your answer. Thanks.
 * ![](https://wordpress.org/67dd1a6c-bebc-4571-8bb5-59fb9575728c)

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

 *  Plugin Contributor [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * (@klarna)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/not-matching-fields-error/#post-17479893)
 * Hi [@vlasin](https://wordpress.org/support/users/vlasin/),
 * Please check that your shop’s Woo checkout form has two separate fields for name(
   first name & last name), as standard in Woo checkout where name is split across
   2 fields, which can be viewed at: [https://demo.krokedil.se/klarnapayments/](https://demo.krokedil.se/klarnapayments/)
 * as the Woo KP plugin expects name to be in 2 fields
 *  Thread Starter [vlasin](https://wordpress.org/support/users/vlasin/)
 * (@vlasin)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/not-matching-fields-error/#post-17482663)
 * Hi [@klarna](https://wordpress.org/support/users/klarna/),
   Thanks for your answer!
   I checked your referenced website ( [https://demo.krokedil.se/klarnapayments/](https://demo.krokedil.se/klarnapayments/))
   and I see there is no shipping details requested at the last step of checkout.
   So this website will not run into my scenario where I use both billing and shipping
   fields. My checkout form uses two separate fields for each section billing and
   shipping forms. So it has the following fields:billling given_name ( mandatory)
   billing family_name ( mandatory )shipping given_name ( optional )shipping family_name(
   optional )In case I submit the checkout form were shipping given_name value is
   different from billing given_name I run into the issue where Klarna API returns
   a message like:**Not matching fields: [shipping_address.given_name]**Might not
   be the plugin at fault but neither Klarna docs offer any insights in their documentation
   why I cannot use a different shipping given_name from billing given_name. One
   common scenario is when I want to have a a billing invoice for me and ship bought
   product to a friend. I need to be able to use different given_names for billing
   and shipping.There is no problem with other shipping fields being different from
   billing fields like postcode , city , country but only for given_name and family_name.
   This is so weird and I would really appreciate any feedback from your side. Thanks!
 *  Plugin Contributor [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * (@klarna)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/not-matching-fields-error/#post-17482763)
 * thank you for the additional info [@vlasin](https://wordpress.org/support/users/vlasin/)!
 * Woo KP plugin expertise is needed, so hoping Krokedil can best help next for 
   this.
 *  Plugin Support [louisekrokedil](https://wordpress.org/support/users/louisekrokedil/)
 * (@louisekrokedil)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/not-matching-fields-error/#post-17484077)
 * Hi,
   You mention that you have two separate fields for each section billing and
   shipping forms and these does not seem to be the standard default WooCommerce
   fields. When using an embedded checkout you need to have all the standard checkout
   fields in the WooCommerce checkout available for the checkout to be working correctly.
   We have a documentation for this[ here](https://docs.krokedil.com/krokedil-general-support-info/embedded-checkouts-in-woocommerce/#keep-the-standard-woocommerce-checkout-fields-available).
 *  Plugin Contributor [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * (@klarna)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/not-matching-fields-error/#post-17699916)
 * Closing, as hopefully resolved per the last comment, but if further support is
   needed, please let us know.
 *  [rasamax](https://wordpress.org/support/users/rasamax/)
 * (@rasamax)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/not-matching-fields-error/#post-18045361)
 * Yes, “louisekrokedil” given link to documentation explained how to fix it. Don’t
   use “unset(…)” on original fields in “woocommerce_checkout_fields”, “woocommerce_shipping_fields”
   or “woocommerce_billing_fields” filters. Just make their [‘class’] contain “d-
   none” or other visually hidding class in case if you still need to show them 
   directly in non-Klarna case.

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

The topic ‘Not matching fields error’ is closed to new replies.

 * ![](https://ps.w.org/klarna-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3174333)
 * [Klarna for WooCommerce](https://wordpress.org/plugins/klarna-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/klarna-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/reviews/)

## Tags

 * [API error](https://wordpress.org/support/topic-tag/api-error/)
 * [klarna](https://wordpress.org/support/topic-tag/klarna/)

 * 6 replies
 * 4 participants
 * Last reply from: [rasamax](https://wordpress.org/support/users/rasamax/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/not-matching-fields-error/#post-18045361)
 * Status: resolved