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 StringgetGatewayType()Each payment module should have a unique implementation ofPaymentGatewayTypewith only a single type.voidvalidatePayment(PaymentValidationRequest paymentValidationRequest, String applicationId, String tenantId)Validates that thePaymentValidationRequestis 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:PaymentGatewayPaymentValidatorValidates that thePaymentValidationRequestis sufficiently configured to execute transactions for the gateway integration.- Specified by:
validatePaymentin interfacePaymentGatewayPaymentValidator- Parameters:
paymentValidationRequest- The paymentValidationRequest to be validatedapplicationId- The application idtenantId- The tenant id
-
getGatewayType
public String getGatewayType()
Description copied from interface:PaymentGatewayTypeAwareEach payment module should have a unique implementation ofPaymentGatewayTypewith only a single type. For instance, the Braintree module would have a 'BraintreePaymentGatewayType' implementation which defines its gateway type key.- Specified by:
getGatewayTypein interfacePaymentGatewayTypeAware- Returns:
- The
PaymentGatewayTyperelated to implementing resource
-
-