com.ingenico.connect.gateway.sdk.java.webhooks.Webhooks Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect-sdk-java Show documentation
Show all versions of connect-sdk-java Show documentation
SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API
The newest version!
package com.ingenico.connect.gateway.sdk.java.webhooks;
import com.ingenico.connect.gateway.sdk.java.defaultimpl.DefaultMarshaller;
/**
* Ingenico ePayments platform factory for several webhooks components.
*/
public final class Webhooks {
private Webhooks() {
}
/**
* Creates a {@link WebhooksHelperBuilder} that will use the given {@link SecretKeyStore}.
*/
public static WebhooksHelperBuilder createHelperBuilder(SecretKeyStore secretKeyStore) {
return new WebhooksHelperBuilder()
.withMarshaller(DefaultMarshaller.INSTANCE)
.withSecretKeyStore(secretKeyStore);
}
/**
* Creates a {@link WebhooksHelper} that will use the given {@link SecretKeyStore}.
*/
public static WebhooksHelper createHelper(SecretKeyStore secretKeyStore) {
WebhooksHelperBuilder webhooksHelperBuilder = createHelperBuilder(secretKeyStore);
return webhooksHelperBuilder.build();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy