Klarna Web SDK v2/r6
    Preparing search index...

    Interface PaymentRequestData

    Request for a purchase authorization.

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

    interface PaymentRequestData {
        amount?: number;
        currency: string;
        customerInteractionConfig?: { returnUrl?: string };
        paymentOptionId?: string;
        paymentRequestReference?: string;
        supplementaryPurchaseData?: SupplementaryPurchaseData;
    }
    Index

    Properties

    amount?: number

    Total payment amount.

    currency: string

    3-letter ISO 4217 currency code.

    customerInteractionConfig?: { returnUrl?: string }

    Configuration for customizing customer interaction with the payment flow.

    Type Declaration

    • OptionalreturnUrl?: string

      URL to redirect the customer after the payment flow is completed.

    paymentOptionId?: string
    paymentRequestReference?: 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.

    supplementaryPurchaseData?: SupplementaryPurchaseData

    Supplementary purchase data.