1 8 package lp.samples; 9 import lp.order.*; 10 18 19 public class VCHECK_SALE extends JLinkPointSample { 20 public VCHECK_SALE() { 21 } 22 protected String getOrderXML() { 23 LPOrderPart order = LPOrderFactory.createOrderPart("order"); 25 26 LPOrderPart op = LPOrderFactory.createOrderPart(); 28 29 op.put("result","LIVE"); 31 op.put("ordertype","SALE"); 32 order.addPart("orderoptions", op ); 34 35 36 op.clear(); 38 op.put("configfile",configfile); 39 order.addPart("merchantinfo", op ); 41 42 43 op.clear(); 45 op.put("name","Joe Customer"); 46 op.put("address1","123 Broadway"); 47 op.put("state","CA"); 48 op.put("city","Moorpark"); 49 op.put("zip","12345"); 50 op.put("phone","8051234567"); 51 op.put("email","joe.customer@somewhere.com"); 52 order.addPart("billing", op ); 54 55 56 op.clear(); 58 op.put("routing","123456789"); 59 op.put("account","2139842610"); 60 op.put("accounttype","pc"); 61 op.put("dl","120381698"); 62 op.put("dlstate","CA"); 63 op.put("bankname","Wells Fargo"); 64 op.put("bankstate","CA"); 65 order.addPart("telecheck", op ); 67 68 69 op.clear(); 71 op.put("chargetotal","12.99"); 72 order.addPart("payment", op ); 74 75 return order.toXML(); 76 } 77 78 } | Popular Tags |