Klarna

Buy Now Pay Later (BNPL) payment method. The customer pays later or in instalments — Klarna handles the credit decision. Prism redirects to Klarna's hosted flow via return_url.

Connector-specific options (e.g. preferred locale, billing details) can be passed via connectorFeatureData.

const paymentClient = new PaymentClient(config);

const response = await paymentClient.authorize({
    merchantTransactionId: "txn_001",
    amount: { minorAmount: 1000, currency: Currency.USD },
    paymentMethod: { klarna: {} },
    captureMethod: CaptureMethod.AUTOMATIC,
    address: { billingAddress: {} },
    authType: AuthenticationType.NO_THREE_DS,
    returnUrl: "https://example.com/return",
});

Last updated

Was this helpful?