Search in sources :

Example 1 with TokenizePaymentRequest

use of com.ingenico.connect.gateway.sdk.java.domain.payment.TokenizePaymentRequest in project connect-sdk-java by Ingenico-ePayments.

the class TokenizePaymentExample method example.

@SuppressWarnings("unused")
public void example() throws URISyntaxException, IOException {
    Client client = getClient();
    try {
        TokenizePaymentRequest body = new TokenizePaymentRequest();
        body.setAlias("Some alias");
        CreateTokenResponse response = client.merchant("merchantId").payments().tokenize("paymentId", body);
    } finally {
        client.close();
    }
}
Also used : TokenizePaymentRequest(com.ingenico.connect.gateway.sdk.java.domain.payment.TokenizePaymentRequest) Client(com.ingenico.connect.gateway.sdk.java.Client) CreateTokenResponse(com.ingenico.connect.gateway.sdk.java.domain.token.CreateTokenResponse)

Aggregations

Client (com.ingenico.connect.gateway.sdk.java.Client)1 TokenizePaymentRequest (com.ingenico.connect.gateway.sdk.java.domain.payment.TokenizePaymentRequest)1 CreateTokenResponse (com.ingenico.connect.gateway.sdk.java.domain.token.CreateTokenResponse)1