UNPKG

bc-payments-sdk

Version:

BetterCommerce's Payments NodeJS SDK is a complete solution for storefront clients that integrate payments. `bc-payments-sdk` is a single point interface for storefront clients for interacting with payment gateways.

27 lines (26 loc) 929 B
/** * Abstract class {BasePaymentProvider} is the base class for all payment providers. * * Payment providers are responsible for providing the concrete implementation of the * payment provider methods. * * This class provides the following methods that can be overridden by the concrete * implementation classes: * * - {initSDK}: Initializes the SDK for the payment provider. * - {initPaymentIntent}: Initializes the payment intent for the payment provider. * - {requestToken}: Requests a token from the payment provider. * - {requestPayment}: Requests a payment from the payment provider. * * @abstract * @category Payment Provider */ export declare abstract class BasePaymentProvider { /** * Initializes the SDK for the given payment provider. * * @protected * @return {boolean} True if the SDK was initialized successfully, false otherwise. */ protected initSDK(): boolean; }