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
Constructors Constructor Description DefaultPassthroughPaymentValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getGatewayType()
Each 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.
-
-
-
Method Detail
-
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
public String 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
-
-