UNPKG

bc-elavon-sdk

Version:

BetterCommerce's Elavon NodeJS SDK enables BC client applications to integrate with Elavon merchant API system. It publishes an interface to interact with [Elavon API](https://developer.elavon.com/products/checkout-js/v1/api-reference/) endpoints.

25 lines (24 loc) 1.06 kB
import { ISession } from "../base/contracts/ISession"; /** * Class {@link Session} representing a session. * * A session is a request to the Elavon API to create a session token. * The session token is a unique identifier that is generated and used to manage user sessions * and maintain stateful communication between client and server. * * The session token response is only valid for 15 minutes and can only be used once. * * @implements {ISession} */ export declare class Session implements ISession { /** * Creates a session token which is a unique identifier that is generated and used to manage user sessions * and maintain stateful communication between client and server. * * API Reference - https://developer.elavon.com/products/hosted-payment-page/v1/api-reference#tag/Request-Session-Token/operation/session-token * * @param data {any} The session data. * @returns A promise resolving to a session object or an error object. */ create(data: any): Promise<any>; }