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 AdyenProvider
protected AdyenConfigurationProperties
readStoredPaymentMethods
(@NonNull String customerReference, String applicationId, String tenantId) Reads stored payments for customer reference from adyen endpointvoid
removeStoredPaymentMethod
(@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:AdyenStoredPaymentMethodService
Reads stored payments for customer reference from adyen endpoint- Specified by:
readStoredPaymentMethods
in 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:AdyenStoredPaymentMethodService
Deletes stored payment for customer reference via adyen endpoint- Specified by:
removeStoredPaymentMethod
in 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
-