1 8 package lp.samples; 9 import lp.order.*; 10 18 19 public class FORCED_TICKET extends JLinkPointSample { 20 public FORCED_TICKET() { 21 } 22 protected String getOrderXML() { 23 LPOrderPart order = LPOrderFactory.createOrderPart("order"); 25 26 LPOrderPart op = LPOrderFactory.createOrderPart(); 28 29 op.put("ordertype","POSTAUTH"); 31 order.addPart("orderoptions", op ); 33 34 op.clear(); 36 op.put("configfile",configfile); 37 order.addPart("merchantinfo", op ); 39 40 op.clear(); 42 op.put("reference_number","NEW987654"); 43 order.addPart("transactiondetails", op ); 45 46 op.clear(); 48 op.put("cardnumber","4111-1111-1111-1111"); 49 op.put("cardexpmonth","03"); 50 op.put("cardexpyear","05"); 51 order.addPart("creditcard", op ); 53 54 op.clear(); 56 op.put("chargetotal","12.99"); 57 order.addPart("payment", op ); 59 60 return order.toXML(); 62 } 63 64 } | Popular Tags |