import type { RequestData } from "../types_internal.js"; import type { CheckoutProblemDetails, InitiatePaymentSessionRequest, InitiateSessionResponse, InitiateSubscriptionSessionRequest, SessionResponse } from "../types_external.js"; /** * Factory object for creating checkout request data. */ export declare const checkoutRequestFactory: { /** * Create a checkout session within your website, where you can process * payments, handle shipping, and gather consent to user information. * See https://developer.vippsmobilepay.com/docs/APIs/checkout-api/ * for more details. * * @param client_id - Client ID for the merchant (the "username"). * See [API keys](https://developer.vippsmobilepay.com/docs/knowledge-base/api-keys/). * @param client_secret - Client Secret for the merchant (the "password"). * See [API keys](https://developer.vippsmobilepay.com/docs/knowledge-base/api-keys/). * @param body - The request body containing the checkout session details. * @returns A `InitiateSessionResponse` or `CheckoutProblemDetails` object. */ create: (client_id: string, client_secret: string, body: InitiatePaymentSessionRequest | InitiateSubscriptionSessionRequest) => RequestData; /** * Retrieves information about a checkout session. Transaction information, * user information and shipping information are included in the * response if the SessionState is PaymentInitiated * * @param client_id - The client ID. * @param client_secret - The client secret. * @param reference - The reference of the checkout session. * @returns A `SessionResponse` or `CheckoutProblemDetails` object. */ info: (client_id: string, client_secret: string, reference: string) => RequestData; }; //# sourceMappingURL=checkout.d.ts.map