com.elasticpath.domain.payment.impl
Class AbstractCreditCardPaymentGatewayImpl
java.lang.Object
com.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractTransientImpl
com.elasticpath.domain.payment.impl.AbstractPaymentGatewayImpl
com.elasticpath.domain.payment.impl.AbstractCreditCardPaymentGatewayImpl
- All Implemented Interfaces:
- EpDomain, CreditCardPaymentGateway, PaymentGateway, Transient, java.io.Serializable
- Direct Known Subclasses:
- AuthorizeNetPaymentGatewayImpl, CyberSourcePaymentGatewayImpl, NullPaymentGatewayImpl, PayflowProPaymentGatewayImpl
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
Method Summary |
java.util.List |
getSupportedCardTypes()
Get the card types supported by this payment gateway. |
void |
setSupportedCardTypes(java.util.List cardTypes)
Set the card types supported by this payment gateway. |
void |
setValidateCvv2(boolean validate)
Set whether the payment gateway should validate the Cvv2. |
boolean |
validateCvv2()
True if this gateway will validate the Cvv2 (Security Code). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.elasticpath.domain.payment.PaymentGateway |
capture, getName, getPaymentType, getProperties, getSupportedCurrencies, preAuthorize, refund, reversePreAuthorization, sale, setName, setProperties, setSupportedCurrencies, voidCaptureOrCredit |
AbstractCreditCardPaymentGatewayImpl
public AbstractCreditCardPaymentGatewayImpl()
getSupportedCardTypes
public java.util.List 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 cardTypes)
- Set the card types supported by this payment gateway.
- Specified by:
setSupportedCardTypes
in interface CreditCardPaymentGateway
- Parameters:
cardTypes
- a List of card type strings (e.g. VISA)
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.
validateCvv2
public boolean validateCvv2()
- True if this gateway will validate the Cvv2 (Security Code).
- Specified by:
validateCvv2
in interface CreditCardPaymentGateway
- Returns:
- True if this gateway will validate the Cvv2 (Security Code)