Merchant merchant = new Merchant();
merchant.setId(loginContext.getMerchantId());
merchant.setKey(globalContext.getMerchantKey());
purchaseRequest.setMerchant(merchant);
Transactions transactions = new Transactions();
org.xrace.desjardins.trx.Transaction trxDesjardins = new org.xrace.desjardins.trx.Transaction();
trxDesjardins.setId(globalContext.getTxIdPrefix()
+ transaction.getId().toString());
trxDesjardins.setKey(loginContext.getTransactionKey());
trxDesjardins.setType(TransactionTypeType.PURCHASE);
trxDesjardins.setCurrency("CAD");
trxDesjardins.setCurrencyText("$CAD");
trxDesjardins.setAmount(amountInt.longValue());
trxDesjardins.setLanguage(LanguageType.FR);
transactions.addTransaction(trxDesjardins);
merchant.setTransactions(transactions);
Urls urls = new Urls();
Url urlResponse = new Url();
urlResponse.setName(UrlNameType.RESPONSE);