private Map<String, Object> getData(PaymentDTOEx paymentInfo) throws PluggableTaskException { PaymentInformationBL piBl = new PaymentInformationBL(); Map<String, Object> data = new HashMap<String, Object>(); data.put("merchantAccountCode", ensureGetParameter(PARAMETER_MERCHANT_ACCOUNT_CODE.getName())); if (paymentInfo.getUserId() != null) data.put("customerAccountCode", String.valueOf(paymentInfo.getUserId())); data.put( "accountNumber", piBl.getStringMetaFieldByType( paymentInfo.getInstrument(), MetaFieldType.PAYMENT_CARD_NUMBER)); data.put( "name", piBl.getStringMetaFieldByType(paymentInfo.getInstrument(), MetaFieldType.TITLE)); data.put("amount", paymentInfo.getAmount().multiply(new BigDecimal("100")).intValue()); data.put("taxAmount", 0); // This was not being set in previous code too // String securityCode = paymentInfo.getCreditCard().getSecurityCode(); // if (securityCode != null) // data.put("cvv2", securityCode); data.put("expirationDate", piBl.get4digitExpiry(paymentInfo.getInstrument())); data.put("transactionDate", paymentInfo.getPaymentDate()); data.put("transactionCode", paymentInfo.getId() + ""); return data; }