currentOption);
newOrder.getLineItems().add(currentLineItem);
}
// create the payment and attache to the order
InternetPayment payment = new InternetPayment();
CreditCardBillingDetails billing = (CreditCardBillingDetails) customer.getBillingDetails().iterator().next();
payment.setCreditCardType(billing.getCreditCardType().toString());
payment.setCreditCardNumber(billing.getCreditCardNumber());
payment.setCreditCardCVVSCode(billing.getCreditCardCVVSCode());
payment.setExpirationDate(billing.getCreditCardExpirationMonth()+"/"+billing.getCreditCardExpirationYear());
payment.setPaymentAmount(shopcart.getCartTotal());
payment.setPaymentDate(new java.util.Date());
payment.setPaymentMethod("Credit Card");
// add this payment to the newOrder
newOrder.addPayment(payment);
// create a customerDAO