API for checkout with error messages.