addToCartComplete

public boolean addToCartComplete(String momentId)

Ends a particular add-to-cart moment instance and generates an info log message that indicates that adding to the cart completed.

This method should be called once the item is verified to be in the user's cart.

Return

True if the operation was successful; false otherwise.

Parameters

momentId

The moment identifier returned by the `PurchaseFlow.addToCartStart` method. This moment identifier must be an identifier produced by this particular PurchaseFlow instance and must not have already been marked as completed or failed.


public boolean addToCartComplete(String momentId, Map<String, Object> properties)

Ends a particular add-to-cart moment instance and generates an info log message that indicates that adding to the cart completed.

This method should be called once the item is verified to be in the user's cart.

Return

True if the operation was successful; false otherwise.

Parameters

momentId

The moment identifier returned by the `PurchaseFlow.addToCartStart` method. This moment identifier must be an identifier produced by this particular PurchaseFlow instance and must not have already been marked as completed or failed.

properties

Custom properties to pass in as part of the add to cart completion