Search in sources :

Example 1 with PaymentProductNetworksAsyncTask

use of com.globalcollect.gateway.sdk.client.android.sdk.asynctask.PaymentProductNetworksAsyncTask in project connect-sdk-client-android by Ingenico-ePayments.

the class GcSession method getPaymentProductNetworks.

public void getPaymentProductNetworks(Context context, String productId, PaymentContext paymentContext, OnPaymentProductNetworksCallCompleteListener listener) {
    if (context == null) {
        throw new InvalidParameterException("Error getting PaymentProductNetworks, context may not be null");
    }
    if (productId == null) {
        throw new InvalidParameterException("Error getting PaymentProductNetworks, productId may not be null");
    }
    if (paymentContext == null) {
        throw new InvalidParameterException("Error getting PaymentProductNetworks, paymentContext may not be null");
    }
    if (listener == null) {
        throw new InvalidParameterException("Error getting PaymentProductNetworks, listener may not be null");
    }
    PaymentProductNetworksAsyncTask task = new PaymentProductNetworksAsyncTask(context, productId, paymentContext, communicator, listener);
    task.execute();
}
Also used : InvalidParameterException(java.security.InvalidParameterException) PaymentProductNetworksAsyncTask(com.globalcollect.gateway.sdk.client.android.sdk.asynctask.PaymentProductNetworksAsyncTask)

Aggregations

PaymentProductNetworksAsyncTask (com.globalcollect.gateway.sdk.client.android.sdk.asynctask.PaymentProductNetworksAsyncTask)1 InvalidParameterException (java.security.InvalidParameterException)1