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).
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
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:
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.