}
private OrderPayment addPaymentToOrder(Order order, Address address) {
OrderPayment payment = new OrderPaymentImpl();
payment.setBillingAddress(address);
payment.setAmount(new Money(15D + (15D * 0.05D)));
payment.setReferenceNumber("1234");
payment.setType(PaymentType.CREDIT_CARD);
payment.setPaymentGatewayType(NullPaymentGatewayType.NULL_GATEWAY);
payment.setOrder(order);
PaymentTransaction tx = new PaymentTransactionImpl();
tx.setAmount(payment.getAmount());
tx.setType(PaymentTransactionType.AUTHORIZE_AND_CAPTURE);
tx.setOrderPayment(payment);
payment.getTransactions().add(tx);
CreditCardPayment cc = new CreditCardPayment() {
private static final long serialVersionUID = 1L;
private String referenceNumber = "1234";