Configuring Klarna
Klarna allows the consumer to purchase a product and then be billed for it afterward.
Last updated
Klarna allows the consumer to purchase a product and then be billed for it afterward.
Last updated
If you're using , you can create a payment method for your app or website in five easy steps:
Important: The Klarna payment type does not support recurring payments. For recurring payments, you must use the klarnaCreditRecurring
payment type.
Build a Klarna source request object. A Klarna source request object requires the following fields.
type
klarnaCredit
sessionId
The payment session identifier.
owner
klarnaCredit
The Klarna source details object requires the following fields.
returnUrl
Required
If you choose to utilize the full redirect flow, this is where your Customer will be redirected to after authorizing within the Klarna experience.
cancelUrl
Required
If you choose to utilize the full redirect flow, this is where your Customer will be redirected to after cancelling within the Klarna experience.
Use the DigitalRiver.js library to create and mount elements to the HTML container.
When you create a Klarna source, the customer must authorize the charge through Klarna. You can accomplish this by redirecting the customer to Klarna, where they will be presented with different payment options.
Use the redirectUrl
parameter in your createSource
response to redirect your customer to Klarna for authorization.
At Klarna, the customer will be presented with the transaction details where they can authorize or cancel the transaction. If the authorization is successful, the customer will be redirected to the returnUrl
parameter you specified when creating the source. If the customer cancels, they will be returned to the cancelURL
parameter you specified when creating the source.
type
klarnaCreditRecurring
amount
klarnaCreditRecurring
owner
klarnaCreditRecurring
Additional setup required: If you want to use Klarna, contact your Account Manager. After you sign the client addendum, the account manager will send setup instructions for Klarna Banners.
An .
A that includes the details of the transaction.
The address
object must contain and data that .
Once authorized, you can use the source by
Note: To support recurring payments, use a payment type of klarnaCreditRecurring
in the . Only use the Klarna Recurring payment type for recurring payments. Klarna Recurring uses a different type of agreement with the lender, Klarna, to facilitate the recurring payments.
An .
A that includes the details of the transaction.
See for testing instructions.