-
final class
This class is used to perform a capture transaction.
final class
This class is used to perform a fraud review transaction.
final class
This class is used to perform an inquiry transaction.
class
This class is used to perform a void transaction.
The Void transaction prevents a transaction from being settled, but does
not release the authorization (hold on funds) on the cardholder's account.
Delayed Capture, Sale, Credit, Authorization, and Voice
Authorization transactions can be voided. A Void transaction cannot be voided.
The Void must occur prior to settlement.
................
// Populate data objects
...............
// Create a new Void Transaction.
// The ORIGID is the PNREF no. for a previous transaction.
VoidTransaction trans = new VoidTransaction("V63A0A07BE5A",
user, connection, payflowUtility.getRequestId());
// Submit the transaction.
Response resp = Trans.submitTransaction();
if (resp != null)
{
// Get the Transaction Response parameters.
TransactionResponse trxnResponse = resp.getTransactionResponse();
if (trxnResponse != null)
{
System.out.println("RESULT = " + trxnResponse.getResult());
System.out.println("PNREF = " + trxnResponse.getPnref());
System.out.println("RESPMSG = " + trxnResponse.getRespMsg());
}
}
// Get the Context and check for any contained SDK specific errors.
Context ctx = resp.getTransactionContext();
if (ctx != null & ctx.getErrorCount() > 0)
{
System.out.println("Errors = " + ctx.toString());
}