Performing a Void

// t is the original transaction object to void

AnyPayReferenceTransaction voidTransaction = (AnyPayReferenceTransaction) t.createReversal();
voidTransaction.execute(new TransactionListener() {
	@Override
	public void onTransactionCompleted() {
		// code
	}

  @Override
  public void onTransactionFailed(MeaningfulError reason) {
		// code
  }
});