1 8 package lp.samples; 9 import lp.order.*; 10 18 19 public class AVS_CVM extends JLinkPointSample { 20 public AVS_CVM() { 21 } 22 23 protected String getOrderXML() { 24 LPOrderPart order = LPOrderFactory.createOrderPart("order"); 26 27 LPOrderPart op = LPOrderFactory.createOrderPart(); 29 30 op.put("ordertype","SALE"); 32 order.addPart("orderoptions", op ); 34 35 op.clear(); 37 op.put("configfile",configfile); 38 order.addPart("merchantinfo", op ); 40 41 op.clear(); 43 op.put("zip","87123"); 44 op.put("addrnum","123"); 45 order.addPart("billing", op ); 47 48 op.clear(); 50 op.put("cardnumber","4111-1111-1111-1111"); 51 op.put("cardexpmonth","03"); 52 op.put("cardexpyear","05"); 53 op.put("cvmvalue","123"); 54 op.put("cvmindicator","provided"); 55 order.addPart("creditcard", op ); 57 58 op.clear(); 60 op.put("chargetotal","12.99"); 61 order.addPart("payment", op ); 63 64 return order.toXML(); 65 } 66 67 } | Popular Tags |