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.
19 lines (18 loc) • 641 B
TypeScript
import { IToken } from "../base/contracts/IToken";
/**
* Class representing a token.
*
* A token is a request to the Checkout.com API to create a secure token to be used in payments.
* The request includes the public key and the payment method details.
*
* @class Token
* @implements {IToken}
*/
export declare class Token implements IToken {
/**
* Request a token
* @param data {Object} - The token request data. Needs to contain a publicKey.
* @returns {Promise<Object>} - A promise resolving to the token request result or an error object.
*/
requestToken(data: any): Promise<any>;
}