com.checkout.CheckoutPreviousSdkBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkout-sdk-java Show documentation
Show all versions of checkout-sdk-java Show documentation
Checkout SDK for Java https://checkout.com
package com.checkout;
import com.checkout.previous.CheckoutApiImpl;
public final class CheckoutPreviousSdkBuilder {
public CheckoutStaticKeysSdkBuilder staticKeys() {
return new CheckoutStaticKeysSdkBuilder();
}
public static class CheckoutStaticKeysSdkBuilder extends AbstractCheckoutSdkBuilder {
private String publicKey;
private String secretKey;
public CheckoutStaticKeysSdkBuilder publicKey(final String publicKey) {
this.publicKey = publicKey;
return this;
}
public CheckoutStaticKeysSdkBuilder secretKey(final String secretKey) {
this.secretKey = secretKey;
return this;
}
@Override
protected SdkCredentials getSdkCredentials() {
return new PreviousStaticKeysSdkCredentials(secretKey, publicKey);
}
@Override
public CheckoutApiImpl build() {
return new CheckoutApiImpl(getCheckoutConfiguration());
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy