Klarna

Klarna is currently in BETA.

Klarna is a payment method that allows consumers to pay for items in instalments, or at a later date.

This does not impact the merchant as they will receive all of the funds upfront as Klarna pays the merchant in full, taking on the debt themselves.

 

To enable Klarna for your account, please contact customer support to set this up.

 

Integrating Klarna using Web SDK

To integrate with Judopay's Web SDK:

Step One: Create a paymentSession

Call the Judopay Transaction API to create a paymentSession.

Make a HTTP POST Request: /paymentsession

 

Response Model

Payment-Session - Response Reference:

 

Your backend server should store the paymentSession response reference returned by Judopay's API.
Use this reference from the response to populate paymentSession when calling /payments and /preAuths from your front-end client.

The following parameters need to remain consistent between the/paymentSession requests and the /payments and /preAuths requests, otherwise the transaction will fail:

  • YourPaymentReference

  • YourConsumerReference

  • JudoID

  • Currency

  • Amount

This is used to cross reference the validity of the transaction.

For the full schema details and descriptions, see Transaction API /paymentsession

 

Store the reference returned in the response in your backend server. This will be used in Step Four: Handle the Klarna Button

 

Step Two: Initiate the Web SDK

Initiate the Web SDK to show the card entry form:

 

Step Three: Display the Klarna Button

Add the Klarna button to your web page:

 

Step Four: Handle the Klarna Button

Make sure the following parameters are the same values as those entered in Step One: Create a paymentSession, or the transaction will fail:

  • YourPaymentReference

  • YourConsumerReference

  • JudoID

  • Currency

  • Amount

When the Klarna Button is clicked, the invokePaymentWithKlarna will be called from the Web SDK.

Your backend server should store the paymentSession response reference returned by Judopay's API.
Use this reference from the response to populate myPaymentToken

 

For the specific input parameters of the products variable, refer to the Klarna Documentation.

 

Step Five: Handle the Response