Type Alias PaymentRequestData

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

Request for a purchase authorization.

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

Type declaration

  • Optionalconfig?: PaymentRequestConfig

    Configuration options for the payment request.

  • currency: Currency

    3-letter ISO 4217 currency code.

  • Optionalcustomer?: Customer

    Information about the customer.

  • OptionallineItems?: LineItem[]

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

  • OptionalmerchantReference?: 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.

  • OptionalpaymentReference?: 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.

  • Optionalshipping?: Shipping[]

    The recipient and delivery address of the consumer.