private OrderPayment createApprovedOrderPayment() {
   OrderPayment orderPayment = new OrderPaymentImpl();
   orderPayment.setCurrencyCode("USD");
   orderPayment.setStatus(OrderPaymentStatus.APPROVED);
   orderPayment.setAmount(BigDecimal.TEN);
   return orderPayment;
 }
 private OrderPayment createCaptureOrderPayment() {
   OrderPayment orderPayment = createApprovedOrderPayment();
   orderPayment.setTransactionType(OrderPayment.CAPTURE_TRANSACTION);
   return orderPayment;
 }
 private OrderPayment createRefundOrderPayment() {
   OrderPayment orderPayment = createApprovedOrderPayment();
   orderPayment.setTransactionType(OrderPayment.CREDIT_TRANSACTION);
   return orderPayment;
 }
 private void addPaymentTokenToOrderPayment(final OrderPayment orderPayment) {
   orderPayment.setPaymentMethod(PaymentType.PAYMENT_TOKEN);
   PaymentToken paymentToken =
       new PaymentTokenImpl.TokenBuilder().withDisplayValue(TEST_TOKEN_DISPLAY_VALUE).build();
   orderPayment.usePaymentToken(paymentToken);
 }
 private void addGiftCertificateToOrderPayment(final OrderPayment orderPayment) {
   orderPayment.setPaymentMethod(PaymentType.GIFT_CERTIFICATE);
   GiftCertificate giftCertificate = new GiftCertificateImpl();
   giftCertificate.setGiftCertificateCode(TEST_GIFT_CERTIFICATE_CODE);
   orderPayment.setGiftCertificate(giftCertificate);
 }
 private void addCreditCardToOrderPayment(final OrderPayment orderPayment) {
   orderPayment.setPaymentMethod(PaymentType.CREDITCARD);
   orderPayment.setCardType(TEST_CREDIT_CARD_TYPE);
   orderPayment.setUnencryptedCardNumber(TEST_CREDIT_CARD_NUMBER);
 }