.verbose(true);
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);
System.out.println(tResponse);
GatewayRequest dRequest = new GatewayRequest(TransactionType.DETOKENIZE)
.cardData(
new CcData()
.setToken(tResponse.getResponseValue("transaction_id"))
)
.setParameter("client_reference_number", "Java SDK Test");