bc-checkout-sdk
Version:
BetterCommerce's Checkout NodeJS SDK enables BC client applications to integrate with Checkout merchant API system. It publishes an interface to interact with [Checkout API](https://api-reference.checkout.com/#operation/getPaymentDetails/) endpoints.
22 lines (21 loc) • 686 B
TypeScript
import { ISession } from "../base/contracts/ISession";
/**
* Class representing a session.
*
* A session is a request to the Checkout.com API to create a session.
* The request includes the session details and the processing channel id.
*
* @class Session
* @implements {ISession}
*/
export declare class Session implements ISession {
/**
* Creates a session for the provided payment source.
*
* API Reference - https://api-reference.checkout.com/payments/payments
*
* @param data {any} The session data.
* @returns A promise resolving to a session object or an error object.
*/
create(data: any): Promise<any>;
}