UNPKG

@agoransson/klarna-payments

Version:

Typescript wrapper for Klarna Payments API.

17 lines (16 loc) 715 B
import { Config } from "../Config"; import { CreateCreditSessionPayload } from "./CreateCreditSessionPayload"; import { CreateCreditSessionResponse } from "./CreateCreditSessionResponse"; /** * Use this API call to create a Klarna Payments session. * * When a session is created you will receive the available * payment_method_categories for the session, a session_id and a client_token. * The session_id can be used to read or update the session using the REST API. * The client_token should be passed to the browser. * * @param config * @param session * @returns */ export declare function CreateCreditSession(config: Config, session: CreateCreditSessionPayload): Promise<CreateCreditSessionResponse>;