public class DefaultPassthroughPaymentValidator extends Object implements PassthroughPaymentValidator
Constructor and Description |
---|
DefaultPassthroughPaymentValidator() |
Modifier and Type | Method and Description |
---|---|
String |
getGatewayType()
Each payment module should have a unique implementation of
PaymentGatewayType with
only a single type. |
void |
validatePayment(com.broadleafcommerce.order.common.domain.Payment payment)
Validates that the
Payment is sufficiently configured to execute transactions for the
gateway integration. |
public void validatePayment(com.broadleafcommerce.order.common.domain.Payment payment)
PaymentGatewayPaymentValidator
Payment
is sufficiently configured to execute transactions for the
gateway integration.validatePayment
in interface PaymentGatewayPaymentValidator
payment
- The payment to be validatedpublic String getGatewayType()
PaymentGatewayTypeAware
PaymentGatewayType
with
only a single type. For instance, the Braintree module would have a
'BraintreePaymentGatewayType' implementation which defines its gateway type key.getGatewayType
in interface PaymentGatewayTypeAware
PaymentGatewayType
related to implementing resourceCopyright © 2021. All rights reserved.