1 8 package lp.samples; 9 import lp.order.*; 10 18 19 public class TAX extends JLinkPointSample { 20 public TAX() { 21 } 22 protected String getOrderXML() { 23 LPOrderPart order = LPOrderFactory.createOrderPart("order"); 25 LPOrderPart op = LPOrderFactory.createOrderPart(); 27 op.put("ordertype","CALCTAX"); 29 order.addPart("orderoptions", op ); 31 32 op.clear(); 33 op.put("configfile",configfile); 35 order.addPart("merchantinfo", op ); 37 38 op.clear(); 40 op.put("subtotal","12.99"); 41 order.addPart("payment", op ); 43 44 op.clear(); 46 op.put("zip","12345"); 47 op.put("total","12.99"); 48 op.put("state","CA"); 49 order.addPart("shipping", op ); 51 52 return order.toXML(); 53 } 54 55 } | Popular Tags |