|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.elasticpath.domain.impl.AbstractEpDomainImpl com.elasticpath.domain.impl.AbstractTransientImpl com.elasticpath.domain.payment.impl.AbstractPaymentGatewayImpl
public abstract class AbstractPaymentGatewayImpl
Abstract payment processing gateway. Extend this to implement specific gateways.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
AbstractPaymentGatewayImpl()
|
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name of the payment gateway (e.g. |
java.util.Properties |
getProperties()
Get the properties of the payment gateway (e.g. |
java.util.List |
getSupportedCurrencies()
Get the currencies supported by this payment gateway. |
void |
refund(OrderPayment payment)
Refunds a previous capture. |
void |
setName(java.lang.String name)
Set the name of the payment gateway (e.g. |
void |
setProperties(java.util.Properties properties)
Set the properties of the payment gateway (e.g. |
void |
setSupportedCurrencies(java.util.List currencies)
Set the currencies supported by this payment gateway. |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
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, getPaymentType, preAuthorize, reversePreAuthorization, sale, voidCaptureOrCredit |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public AbstractPaymentGatewayImpl()
Method Detail |
---|
public java.lang.String getName()
getName
in interface PaymentGateway
public java.util.Properties getProperties()
getProperties
in interface PaymentGateway
public java.util.List getSupportedCurrencies()
getSupportedCurrencies
in interface PaymentGateway
public void refund(OrderPayment payment)
refund
in interface PaymentGateway
payment
- the payment to be refundedpublic void setName(java.lang.String name)
setName
in interface PaymentGateway
name
- the gateway namepublic void setProperties(java.util.Properties properties)
setProperties
in interface PaymentGateway
properties
- the gateway propertiespublic void setSupportedCurrencies(java.util.List currencies)
setSupportedCurrencies
in interface PaymentGateway
currencies
- a List of currency code strings (e.g. CAD)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |