gateway = new Gateway(settings);
try {
GatewayRequest tRequest = new GatewayRequest(TransactionType.TOKENIZE)
.cardData(
new CcData()
.setCcNum("4012888812348882")
)
.setParameter("client_reference_number", "Java SDK Test");
GatewayResponse tResponse = gateway.run(tRequest);
LOG.log(Level.INFO, tResponse.toString());
GatewayRequest sRequest = new GatewayRequest(TransactionType.PREAUTH)
.cardData(
new CcData()
.setToken(tResponse.getTransactionId())
.setExpDate("1216")
.setCvv("123")
)
.amount("0.3")