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.

19 lines (18 loc) 845 B
/** * Class {PaymentMethod} contains methods for interacting with the PaymentMethod endpoint on the CommerceHub API. * * The methods in this class can be used to retrieve payment methods, update payment methods, and more. */ export declare class PaymentMethod { /** * Retrieves all payment methods. * * Retrieves all payment methods based on the provided data, headers, and cookies. * The method makes an API call to fetch the payment methods and returns the result. * * @param data - The data required to identify the basket. * @param { headers, cookies } - The headers and cookies to include in the request. * @returns A promise that resolves to the payment methods result or an error object if the request fails. */ static getAll(data: any, { headers, cookies }: any): Promise<any>; }