use of com.ingenico.connect.gateway.sdk.java.domain.payment.definitions.CardPaymentMethodSpecificInput in project connect-sdk-java by Ingenico-ePayments.
the class DefaultConnectionIdempotenceTest method createRequest.
private CreatePaymentRequest createRequest() {
CreatePaymentRequest body = new CreatePaymentRequest();
Order order = new Order();
AmountOfMoney amountOfMoney = new AmountOfMoney();
amountOfMoney.setAmount(2345L);
amountOfMoney.setCurrencyCode("CAD");
order.setAmountOfMoney(amountOfMoney);
Customer customer = new Customer();
Address billingAddress = new Address();
billingAddress.setCountryCode("CA");
customer.setBillingAddress(billingAddress);
order.setCustomer(customer);
CardPaymentMethodSpecificInput cardPaymentMethodSpecificInput = new CardPaymentMethodSpecificInput();
cardPaymentMethodSpecificInput.setPaymentProductId(1);
Card card = new Card();
card.setCvv("123");
card.setCardNumber("4567350000427977");
card.setExpiryDate("1220");
cardPaymentMethodSpecificInput.setCard(card);
body.setCardPaymentMethodSpecificInput(cardPaymentMethodSpecificInput);
return body;
}
Aggregations