@beamimpact/web-sdk
Version:
The Beam SDK enables brands to connect with their customers over shared values, not transactional discounts, to build stronger loyalty. Our integration achieves this by allowing customers to (a) choose a nonprofit where the brand will donate part of their
19 lines (17 loc) • 685 B
TypeScript
/**
* Retrieves the Beam cart ID from cookies
* @param CART_COOKIE_NAME - The name of the cookie that stores the Beam cart ID
* @returns The Beam cart ID if present in cookies or local storage, otherwise null
*/
declare const getBeamCartId: (CART_COOKIE_NAME: string, config: {
apiKey: string;
}) => string | null;
/**
* Retrieves the external cart ID
* @param CART_COOKIE_NAME - The name of the cookie that stores the external cart ID
* @returns The external cart ID if available or null if neither is available
*/
declare const getExternalCartId: (CART_COOKIE_NAME: string, config: {
apiKey: string;
}) => string | null;
export { getBeamCartId, getExternalCartId };