Source:
public static Payment createCallPayment() { Address billingAddress = AddressTestCase.createAddress(); CreditCard creditCard = new CreditCard(); creditCard.setBillingAddress(billingAddress); creditCard.setCvv2(617); creditCard.setExpireMonth(01); creditCard.setExpireYear(2017); creditCard.setFirstName("Joe"); creditCard.setLastName("Shopper"); creditCard.setNumber("4422009910903049"); creditCard.setType("visa"); ItemList itemList = new ItemList(); List<Item> items = new ArrayList<Item>(); items.add(ItemTestCase.createItem()); itemList.setItems(items); Details amountDetails = new Details(); amountDetails.setTax("8.40"); amountDetails.setSubtotal("44.10"); amountDetails.setShipping("4.99"); Amount amount = new Amount(); amount.setDetails(amountDetails); amount.setCurrency("USD"); amount.setTotal("57.49"); Transaction transaction = new Transaction(); transaction.setAmount(amount); transaction.setItemList(itemList); transaction .setDescription("This is the payment transaction description."); List<Transaction> transactions = new ArrayList<Transaction>(); transactions.add(transaction); FundingInstrument fundingInstrument = new FundingInstrument(); fundingInstrument.setCreditCard(creditCard); List<FundingInstrument> fundingInstrumentList = new ArrayList<FundingInstrument>(); fundingInstrumentList.add(fundingInstrument); Payer payer = new Payer(); payer.setFundingInstruments(fundingInstrumentList); payer.setPaymentMethod("credit_card"); Payment payment = new Payment(); payment.setIntent("sale"); payment.setPayer(payer); payment.setTransactions(transactions); return payment; }

Target:
public static Payment createCallPayment() { Address billingAddress = AddressTestCase.createAddress(); CreditCard creditCard = new CreditCard(); creditCard.setBillingAddress(billingAddress); creditCard.setCvv2(617); creditCard.setExpireMonth(01); creditCard.setExpireYear(2020); creditCard.setFirstName("Joe"); creditCard.setLastName("Shopper"); creditCard.setNumber("4422009910903049"); creditCard.setType("visa"); ItemList itemList = new ItemList(); List<Item> items = new ArrayList<Item>(); items.add(ItemTestCase.createItem()); itemList.setItems(items); Details amountDetails = new Details(); amountDetails.setTax("8.40"); amountDetails.setSubtotal("44.10"); amountDetails.setShipping("4.99"); Amount amount = new Amount(); amount.setDetails(amountDetails); amount.setCurrency("USD"); amount.setTotal("57.49"); Transaction transaction = new Transaction(); transaction.setAmount(amount); transaction.setItemList(itemList); transaction .setDescription("This is the payment transaction description."); List<Transaction> transactions = new ArrayList<Transaction>(); transactions.add(transaction); FundingInstrument fundingInstrument = new FundingInstrument(); fundingInstrument.setCreditCard(creditCard); List<FundingInstrument> fundingInstrumentList = new ArrayList<FundingInstrument>(); fundingInstrumentList.add(fundingInstrument); Payer payer = new Payer(); payer.setFundingInstruments(fundingInstrumentList); payer.setPaymentMethod("credit_card"); Payment payment = new Payment(); payment.setIntent("sale"); payment.setPayer(payer); payment.setTransactions(transactions); return payment; }