Class DefaultAdyenStoredPaymentMethodService
java.lang.Object
com.broadleafcommerce.adyen.service.DefaultAdyenStoredPaymentMethodService
- All Implemented Interfaces:
AdyenStoredPaymentMethodService
public class DefaultAdyenStoredPaymentMethodService
extends Object
implements AdyenStoredPaymentMethodService
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultAdyenStoredPaymentMethodService(AdyenProvider adyenProvider, AdyenConfigurationProperties configurationProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected AdyenProviderprotected AdyenConfigurationPropertiesreadStoredPaymentMethods(@NonNull String customerReference, String applicationId, String tenantId) Reads stored payments for customer reference from adyen endpointvoidremoveStoredPaymentMethod(@NonNull String customerReference, @NonNull String storedPaymentMethodId, String applicationId, String tenantId) Deletes stored payment for customer reference via adyen endpoint
-
Constructor Details
-
DefaultAdyenStoredPaymentMethodService
public DefaultAdyenStoredPaymentMethodService(AdyenProvider adyenProvider, AdyenConfigurationProperties configurationProperties)
-
-
Method Details
-
readStoredPaymentMethods
public List<AdyenStoredPaymentMethod> readStoredPaymentMethods(@NonNull @NonNull String customerReference, @Nullable String applicationId, @Nullable String tenantId) Description copied from interface:AdyenStoredPaymentMethodServiceReads stored payments for customer reference from adyen endpoint- Specified by:
readStoredPaymentMethodsin interfaceAdyenStoredPaymentMethodService- Parameters:
customerReference- - the customer reference to identify customer/shopper in adyenapplicationId- - the application idtenantId- - the tenant- Returns:
- adyen stored payment endpoint response
-
removeStoredPaymentMethod
public void removeStoredPaymentMethod(@NonNull @NonNull String customerReference, @NonNull @NonNull String storedPaymentMethodId, @Nullable String applicationId, @Nullable String tenantId) Description copied from interface:AdyenStoredPaymentMethodServiceDeletes stored payment for customer reference via adyen endpoint- Specified by:
removeStoredPaymentMethodin interfaceAdyenStoredPaymentMethodService- Parameters:
customerReference- - the customer reference to identify customer/shopper in adyenstoredPaymentMethodId- - the id of stored payment method returned by adyen read stored payment endpointapplicationId- - the application idtenantId- - the tenant id
-
getAdyenProvider
-
getConfigurationProperties
-