}
}
public void testOrderCancelled() throws Exception{
try {
IdealConnector connector = new IdealConnector(configFile);
int amount = 2;
int amountFormat = amount * 100;
Transaction transaction = new Transaction();
transaction.setIssuerID(issuerId);
transaction.setAmount(Integer.toString(amountFormat));
transaction.setPurchaseID(orderId);
transaction.setDescription(orderDiscription);
Random random = new Random();
String EntranceCode = Long.toString(Math.abs(random.nextLong()), 36);
transaction.setEntranceCode(EntranceCode);
transaction.setMerchantReturnURL(merchantReturnURL);
Transaction trx = connector.requestTransaction(transaction);
String transactionId = trx.getTransactionID();
Transaction transactionCustomer = connector.requestTransactionStatus(transactionId);
transactionCustomer.isCancelled();
Debug.logInfo("[testOrderCancelled] IssuerID Messages from iDEAL: " + transactionCustomer.getIssuerID(), module);
Debug.logInfo("[testOrderCancelled] Status Messages from iDEAL: " + transactionCustomer.getStatus(), module);
} catch (IdealException ex) {
TestCase.fail(ex.getMessage());