Class DefaultPassthroughPaymentValidator
java.lang.Object
com.broadleafcommerce.paymentgateway.service.passthrough.DefaultPassthroughPaymentValidator
- All Implemented Interfaces:
PassthroughPaymentValidator
,PaymentGatewayPaymentValidator
,PaymentGatewayTypeAware
public class DefaultPassthroughPaymentValidator
extends Object
implements PassthroughPaymentValidator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionEach payment module should have a unique implementation ofPaymentGatewayType
with only a single type.void
validatePayment
(PaymentValidationRequest paymentValidationRequest, String applicationId, String tenantId) Validates that thePaymentValidationRequest
is sufficiently configured to execute transactions for the gateway integration.
-
Constructor Details
-
DefaultPassthroughPaymentValidator
public DefaultPassthroughPaymentValidator()
-
-
Method Details
-
validatePayment
public void validatePayment(PaymentValidationRequest paymentValidationRequest, @Nullable String applicationId, @Nullable String tenantId) Description copied from interface:PaymentGatewayPaymentValidator
Validates that thePaymentValidationRequest
is sufficiently configured to execute transactions for the gateway integration.- Specified by:
validatePayment
in interfacePaymentGatewayPaymentValidator
- Parameters:
paymentValidationRequest
- The paymentValidationRequest to be validatedapplicationId
- The application idtenantId
- The tenant id
-
getGatewayType
Description copied from interface:PaymentGatewayTypeAware
Each payment module should have a unique implementation ofPaymentGatewayType
with only a single type. For instance, the Braintree module would have a 'BraintreePaymentGatewayType' implementation which defines its gateway type key.- Specified by:
getGatewayType
in interfacePaymentGatewayTypeAware
- Returns:
- The
PaymentGatewayType
related to implementing resource
-