Klarna Docs - B2B

Sometimes an order is placed on behalf of an organisation, instead of an individual. We refer to this as the Business to Business flow, or B2B flow, for Klarna Checkout. The B2B flow comes with some differences in the user experience compared to the Business to Consumer flow (B2C).

Your Merchant ID has to be enabled for B2B by Klarna (available in Sweden, Norway and Finland).

Configuration

Enable B2B in Stores ⇒ Configuration ⇒ Sales ⇒ Checkout ⇒ Klarna Checkout

OPTIONAL: If you would like to allow your registered customers to provide you their organisation number when they create their account with you so that they don’t have to type it every time they place an order, then you can create your own customer attribute.

Go to Stores ⇒ Attributes ⇒ Customer [only applicable for EE]

And add a new customer attribute

Under Stores ⇒ Configuration ⇒ Sales ⇒ Checkout ⇒ Klarna Checkout set “Business ID attribute” to the attribute you just created.

If you later decide you don’t want to use that attribute, you can choose “Unselect” to turn it off.

OPTIONAL: If you would like to display the organisation ID in your order information page  or other sections like Invoice and Credit Memo.  You need to create a new quote attribute and order attribute with the same attribute code that you created in step 2 above. Our module will populate the value into this particular field on the quote. Your module will be responsible for copying that value over to the order using a fieldset.xml as well as displaying that field anywhere you need it displayed (eg Order view in admin, invoices, etc).

B2B is only available to customers who have a registered account with you.  Customers can initiate a B2B checkout using any of the following methods:

  • If you created a custom attribute per 3.8.2 and the customer filled in this value, then they will be defaulted into B2B flow.  There will be a link at the top of the checkout that will allow them to switch back to B2C if they want
  • If you did not create a custom attribute, but the customer filled in the Company Name field on their billing address, then they will again be defaulted into B2B flow.  There will be a link at the top of the checkout that will allow them to switch back to B2C if they want.
  • If neither of the above is true, then a customer will be defaulted into B2C flow.  However, there will be a link at the top of checkout that will allow them to switch to B2B flow.

Store company registration number to magento order

You need to create your own customized extension with installation script to add new attribute (the attribute need to be the same with  custom attribute per 3.8.2 ) on both Quote and Order, then use fieldset.xml to copy the value from quote to order.