1 8 package lp.samples; 9 import lp.order.*; 10 18 19 public class RETAIL_PARTIAL_AVS extends JLinkPointSample { 20 public RETAIL_PARTIAL_AVS() { 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 35 op.clear(); 37 op.put("configfile",configfile); 38 order.addPart("merchantinfo", op ); 40 41 op.clear(); 43 op.put("terminaltype","UNATTENDED"); 49 op.put("transactionorigin","RETAIL"); 50 order.addPart("transactiondetails", op ); 52 53 op.clear(); 55 op.put("zip","12345"); 58 order.addPart("billing", op ); 60 61 op.clear(); 63 op.put("cardnumber","4111-1111-1111-1111"); 64 op.put("cardexpmonth","03"); 65 op.put("cardexpyear","05"); 66 order.addPart("creditcard", op ); 68 69 op.clear(); 71 op.put("chargetotal","12.99"); 72 order.addPart("payment", op ); 74 75 76 return order.toXML(); 77 } 78 79 } | Popular Tags |