Search in sources :

Example 1 with PaymentProductNetworksResponse

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

the class GetNetworksExample method example.

@SuppressWarnings("unused")
public void example() throws URISyntaxException, IOException {
    Client client = getClient();
    try {
        NetworksParams query = new NetworksParams();
        query.setCountryCode("US");
        query.setCurrencyCode("USD");
        query.setAmount(1000L);
        query.setIsRecurring(true);
        PaymentProductNetworksResponse response = client.merchant("merchantId").products().networks(320, query);
    } finally {
        client.close();
    }
}
Also used : Client(com.ingenico.connect.gateway.sdk.java.Client) PaymentProductNetworksResponse(com.ingenico.connect.gateway.sdk.java.domain.product.PaymentProductNetworksResponse)

Aggregations

Client (com.ingenico.connect.gateway.sdk.java.Client)1 PaymentProductNetworksResponse (com.ingenico.connect.gateway.sdk.java.domain.product.PaymentProductNetworksResponse)1