Klarna get address on inserting the Swedish SSN for the Opencart
- Stock: In Stock
- Model: MOD_21
- Weight: 0.00kg
Today i am able to make Klarna's get address on inserting the SSN(social security number).
An example of what I am trying to achieve can be seen at the checkout of this website.
At the checkout page of the above website, if you enter the following social security number: 410321-9202 in the "Personnummer" field (which means Social Security Number in Swedish) and click on Hämta (Get Address in Swedish), you will see that the name and address of the customer will be filled automatically.
This is done by using the getAddresses() function of the klarna API.
I am able to get the output. This is very straightforward, just take the output from the getAddresses() function and input it into Opencart checkout fields.
getAddresses is a function used to retrieve a customer's address(es) when selecting Klarna's payment methods. Using this function, the customer receives a simpler purchasing experience and a decreased risk of entering addresses incorrectly.
getAddresses can be used by customers with one or more registered addresses as well as companies. Customers can enter either an organization or a social security number, the function will then return all registered addresses for that customer.
This function is available for customers with a Swedish organization or social security number (in the remaining countries the required input fields are necessary in order for the customer to enter this information manually).
The getAddresses function is to be used as long as the following requirements are met:
Module by Rupak Nepali