updateShoppingCart(_:)
Updates the shopping cart on the customer’s device.
Declaration
final func updateShoppingCart(_ shoppingCart: CustomerEngagement.ShoppingCart) async throws -> CustomerEngagement.ShoppingCartTokenParameters
- shoppingCart:
A structure of the shopping cart, consisting of shopping cart items and the summary.
Mentioned in
Return Value
CustomerEngagement.ShoppingCartToken for making payment request using requestPayment(for:using:delegate:).
Discussion
This function can be called repeatedly as the shopping cart is populated, and each update replaces the entire shopping cart.
When there isn’t any form, like a sign-up form being displayed, the screen defaults to the current CustomerEngagement.ShoppingCart.