use of com.ingenico.connect.gateway.sdk.java.domain.payment.CompletePaymentRequest in project connect-sdk-java by Ingenico-ePayments.
the class CompletePaymentExample method example.
@SuppressWarnings("unused")
public void example() throws URISyntaxException, IOException {
Client client = getClient();
try {
CardWithoutCvv card = new CardWithoutCvv();
card.setCardNumber("67030000000000003");
card.setCardholderName("Wile E. Coyote");
card.setExpiryDate("1220");
CompletePaymentCardPaymentMethodSpecificInput cardPaymentMethodSpecificInput = new CompletePaymentCardPaymentMethodSpecificInput();
cardPaymentMethodSpecificInput.setCard(card);
CompletePaymentRequest body = new CompletePaymentRequest();
body.setCardPaymentMethodSpecificInput(cardPaymentMethodSpecificInput);
CompletePaymentResponse response = client.merchant("merchantId").payments().complete("paymentId", body);
} finally {
client.close();
}
}
Aggregations