Klarna Web SDK v2
    Preparing search index...

    Interface PaymentRequest

    A Payment Request represents a request for a payment. The Payment Request lifecycle is defined in PaymentRequestStateType.

    A payment request is automatically created when a user clicks the Klarna payment button and the paymentRequest property is defined. See KlarnaPaymentButton for more information.

    interface PaymentRequest {
        paymentRequestId: string;
        previousState?:
            | "SUBMITTED"
            | "IN_PROGRESS"
            | "COMPLETED"
            | "EXPIRED"
            | "CANCELED";
        state: "SUBMITTED"
        | "IN_PROGRESS"
        | "COMPLETED"
        | "EXPIRED"
        | "CANCELED";
        stateContext?: PaymentRequestStateContext;
        stateReason?:
            | "PARTNER_CANCELED"
            | "PURCHASE_FLOW_ABORTED"
            | "TECHNICAL_ERROR";
    }
    Index

    Properties

    paymentRequestId: string

    Unique identifier of this payment request

    previousState?:
        | "SUBMITTED"
        | "IN_PROGRESS"
        | "COMPLETED"
        | "EXPIRED"
        | "CANCELED"

    Previous state of the payment request

    state: "SUBMITTED" | "IN_PROGRESS" | "COMPLETED" | "EXPIRED" | "CANCELED"

    Current state of the payment request

    Context for the current state of the payment request

    stateReason?: "PARTNER_CANCELED" | "PURCHASE_FLOW_ABORTED" | "TECHNICAL_ERROR"

    Reason why the payment request is in its current state