Interface PaymentRequestData

Request for a purchase authorization.

This is the authorization context to use for a normal purchase.

interface PaymentRequestData {
    config?: PaymentRequestConfig;
    currency: Currency;
    customer?: Customer;
    lineItems?: LineItem[];
    merchantReference?: string;
    paymentAmount: number;
    paymentReference?: string;
    shipping?: Shipping;
}

Properties

Configuration options for the payment request.

currency: Currency

3-letter ISO 4217 currency code.

customer?: Customer

Information about the customer.

lineItems?: LineItem[]

Optional line items describing the purchase, the total sum of the line items must match the payment amount.

merchantReference?: string

Consumer-facing order number. It will be displayed to consumers on the Klarna app and other communications. It will also be included in settlement reports for reconciliation.

paymentAmount: number

Total payment amount.

paymentReference?: string

Reference to the payment session or equivalent resource created on your side. This will be exposed in payment request webhooks (payments.v2.request.*) for the purpose of correlating your resource with the Klarna Payment Request.

shipping?: Shipping

The recipient and delivery address of the consumer.