Skip to main content

Type Alias: PrepareCartImage()

PrepareCartImage: (base64, cartId, cartItemId) => Promise<string | null>

Returns relative path to CDN for cart product image. In case of error returns null

Parameters

base64: string

Base64 of image

cartId: string

Cart id

cartItemId: string

Cart item id

Returns

Promise<string | null>

If success, returns relative path to CDN. In case of error returns null