Create a Klarna PayIn
Note – Timeout after 48 hours
The Klarna payment session lasts 48 hours, at which point the pay-in fails automatically if no action has been taken by the user.
Note – Minimum amount in Production
In Production, the minimum accepted DebitedFunds
amount for Klarna is 1
(regardless of currency).
Body parameters
Max. length: 255 characters
Custom data that you can add to this object.
For transactions (pay-in, transfer, payout), you can use this parameter to identify corresponding information regarding the user, transaction, or payment methods on your platform.
The unique identifier of the user at the source of the transaction.
Information about the debited funds. The amount must be equal to the total of all UnitAmount
and TaxAmount
of all LineItems
.
Information about the fees.
The unique identifier of the credited wallet.
Max. length: 255 characters
The URL to which the user is returned after the payment, whether the transaction is successful or not.
Max. length: 10 characters; only alphanumeric and spaces
Custom description to appear on the user’s bank statement along with the platform name. Different banks may show more or less information. See the Customizing bank statement references article for details.
Information about the end user billing address.
Information about the end user’s shipping address.
The shipping address AddressLine1
must be formatted:
- FR, UK, US: [Number][StreetName], for example: 33 Cavendish Square
- Rest of EU: [StreetName][Number], for example: De Ruijterkade 7
Caution: Failure to follow this formatting may result in an error.
If no shipping address is sent, Klarna considers it to be the same as the billing address.
object
Information about the items purchased in the transaction. The total of all line items’ UnitAmount
and TaxAmount
must equal the DebitedFunds
amount.
Format: ISO 3166-1 alpha-2 two-letter country code
The country of residence of the user.
Format: ISO 639-1 alpha-2 two-letter language code
The language in which the Klarna payment page is to be displayed.
The Culture
must match the Country
to show the checkout page in the desired language. If not, or if Culture
is not sent, EN is the language by default.
Format: A valid email address
The user’s email address.
Format: [+CC][XXXXXXXXX] where +CC is the international dialing code and Xs are the local number, for example: [+33][689854321]
The user’s mobile phone number. If the phone matches the user’s Klarna account, their checkout experience involves one less step.
Format: Serialized JSON object
The extra merchant data required by Klarna for the transaction, as described in the Klarna guide.
The platform’s order reference for the transaction.
The unique reference generated for the profiling session, used by the fraud prevention solution to produce recommendations for the transaction using the profiling data.
Note: Parameter not returned by the API. Profiling feature available on request – contact Mangopay via the Dashboard for more information.
Responses
Was this page helpful?