UNPKG

modem-pay

Version:

A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.

20 lines (19 loc) 849 B
import Core from "../interfaces/core"; import { List, ListOption, Session, SessionParams } from "../types"; import BaseResource from "./base"; export default class SessionsResource extends BaseResource implements Core<Session> { constructor(apiKey: string, maxRetries: number, timeout: number); /** Creates a new Session */ create(params: SessionParams): Promise<Session>; /** Retrieves a Session. */ retrieve(id: string): Promise<Session>; /** * Expires an active session. * * Once expired, customers can no longer complete the session. * Any customer attempting to load the session will receive a message indicating that the session has expired. */ expire(id: string): Promise<Session>; /** Returns a list of Checkout Sessions. */ list(options?: ListOption): Promise<List<Session>>; }