<%@ page import com.luckycart.client.LuckyCart; %> <%@ page import com.luckycart.client.domain.*; %> <% // Create a LuckyCart object with your key and secret LuckyCart luckyCart = LuckyCart.builder().setKey("key").setSecret("secret").createLuckyCart(); // Cancels the specified cart, assuming data from the site are store in a cart object. LuckyCartCancelResponse cancelResponse = luckyCart.cancel(cart.getTtc()); %> ... <% out.println(cancelResponse.getId()); %> <% out.println(cancelResponse.getTickets()); %> ...