1 8 package lp.samples; 9 import lp.order.*; 10 18 19 public class L2PURCHASING_CARD extends JLinkPointSample { 20 public L2PURCHASING_CARD() { 21 } 22 protected String getOrderXML() { 23 LPOrderPart order = LPOrderFactory.createOrderPart("order"); 25 26 LPOrderPart op = LPOrderFactory.createOrderPart(); 28 29 op.put("ordertype","SALE"); 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("ponumber","1203A-G4567"); 45 op.put("taxexempt","N"); 48 order.addPart("transactiondetails", op ); 50 51 op.clear(); 53 op.put("cardnumber","4111-1111-1111-1111"); 54 op.put("cardexpmonth","03"); 55 op.put("cardexpyear","05"); 56 order.addPart("creditcard", op ); 58 59 op.clear(); 61 op.put("chargetotal","12.99"); 62 op.put("tax","0.32"); 65 66 order.addPart("payment", op ); 68 69 return order.toXML(); 71 } 72 73 } | Popular Tags |