Home > @poq/sdk > ICheckoutClient
ICheckoutClient can be helpful in cases when user wants to operate over some cart by adding items, updating or getting cart itself. Interface specifies a set of action over cart plus functionality to complete an order.
Signature:
export interface ICheckoutClient
Method | Description |
---|---|
addCartItem(appIdentifier, poqUserId, cartParams, mergeByCustomData) | Adds an item to a user’s cart. |
checkoutComplete(appIdentifier, appId, poqUserId, platform, currency, request) | Completes an order. |
getCart(appIdentifier, poqUserId) | Gets a user’s cart. |
updateCart(appIdentifier, poqUserId, request) | Updates a user’s cart. |