com.bea.alcs.domain.payment.impl
Class AbstractCreditCardPaymentGatewayImpl
java.lang.Object
com.bea.alcs.domain.impl.AbstractEpDomainImpl
com.bea.alcs.domain.impl.AbstractPersistenceImpl
com.bea.alcs.domain.impl.AbstractValueObjectImpl
com.bea.alcs.domain.payment.impl.AbstractPaymentGatewayImpl
com.bea.alcs.domain.payment.impl.AbstractCreditCardPaymentGatewayImpl
- All Implemented Interfaces:
- EpDomain, CreditCardPaymentGateway, PaymentGateway, Persistence, ValueObject, java.io.Serializable
- Direct Known Subclasses:
- AuthorizeNetPaymentGatewayImpl, CyberSourcePaymentGatewayImpl, NullPaymentGatewayImpl, PayflowProPaymentGatewayImpl, PaypalDoDirectPaymentGatewayImpl
public abstract class AbstractCreditCardPaymentGatewayImpl
- extends AbstractPaymentGatewayImpl
- implements CreditCardPaymentGateway
Abstract credit card payment processing gateway. Extend this to implement specific gateways such as CyberSource or Verisign.
- See Also:
- Serialized Form
Methods inherited from class com.bea.alcs.domain.payment.impl.AbstractPaymentGatewayImpl |
buildProperties, finalizeShipment, getDefaultPropertyKeys, getName, getPropertiesMap, getSupportedCurrencies, getUidPk, isEmpty, mergeProperties, refund, setName, setProperties, setPropertiesMap, setSupportedCurrencies, setUidPk |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bea.alcs.domain.payment.PaymentGateway |
buildProperties, capture, finalizeShipment, getName, getPaymentType, getPropertiesMap, getSupportedCurrencies, getType, mergeProperties, preAuthorize, refund, reversePreAuthorization, sale, setName, setProperties, setPropertiesMap, setSupportedCurrencies, voidCaptureOrCredit |
AbstractCreditCardPaymentGatewayImpl
public AbstractCreditCardPaymentGatewayImpl()
getSupportedCardTypes
public java.util.List<java.lang.String> getSupportedCardTypes()
- Get the card types supported by this payment gateway.
- Specified by:
getSupportedCardTypes
in interface CreditCardPaymentGateway
- Returns:
- a List of card type strings (e.g. VISA)
setSupportedCardTypes
public void setSupportedCardTypes(java.util.List<java.lang.String> cardTypes)
- Set the card types supported by this payment gateway.
- Parameters:
cardTypes
- a List of card type strings (e.g. VISA)
isCvv2ValidationEnabled
public boolean isCvv2ValidationEnabled()
- True if this gateway will validate the Cvv2 (Security Code).
- Specified by:
isCvv2ValidationEnabled
in interface CreditCardPaymentGateway
- Returns:
- True if this gateway will validate the Cvv2 (Security Code)
setValidateCvv2
public void setValidateCvv2(boolean validate)
- Set whether the payment gateway should validate the Cvv2.
- Specified by:
setValidateCvv2
in interface CreditCardPaymentGateway
- Parameters:
validate
- true if the payment gateway should validate the Cvv2.
checkEnrollment
public PayerAuthenticationEnrollmentResult checkEnrollment(ShoppingCart shoppingCart,
OrderPayment payment)
- Check the card account enrollment.
- Specified by:
checkEnrollment
in interface CreditCardPaymentGateway
- Parameters:
shoppingCart
- the shoppingCartpayment
- orderPayment.
- Returns:
- result of enrollment checking.
validateAuthentication
public boolean validateAuthentication(OrderPayment payment,
java.lang.String paRes)
- Validate the authentication.
- Specified by:
validateAuthentication
in interface CreditCardPaymentGateway
- Parameters:
payment
- orderPayment.paRes
- from issuing bank.
- Returns:
- boolean successful value for validation.