|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PaymentGateway
Represents a payment processing gateway such as Verisign or Cybersource.
Method Summary | |
---|---|
void |
capture(OrderPayment payment)
Captures a payment on a previously authorized card. |
java.lang.String |
getName()
Get the name of the payment gateway (e.g. |
PaymentType |
getPaymentType()
Get the type of this payment gateway. |
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 |
preAuthorize(OrderPayment payment,
Address billingAddress)
Pre-authorize a payment. |
void |
refund(OrderPayment payment)
Refunds a previous capture. |
void |
reversePreAuthorization(OrderPayment payment)
Reverse a previous pre-authorization. |
void |
sale(OrderPayment payment,
Address billingAddress)
Marks a transaction for immediate fund transfer without any pre-authorization. |
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. |
void |
voidCaptureOrCredit(OrderPayment payment)
Void a previous capture or credit. |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
void capture(OrderPayment payment)
payment
- the payment to be captured
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing failsjava.lang.String getName()
PaymentType getPaymentType()
java.util.Properties getProperties()
java.util.List getSupportedCurrencies()
void preAuthorize(OrderPayment payment, Address billingAddress)
payment
- the payment to be preauthorizedbillingAddress
- the name and address of the person being billed
CardDeclinedException
- if the card is declined
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing failsvoid refund(OrderPayment payment)
payment
- the payment to be refunded
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing failsvoid reversePreAuthorization(OrderPayment payment)
payment
- the payment that was previously pre-authorized
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing failsvoid sale(OrderPayment payment, Address billingAddress)
payment
- the payment to be immediately processedbillingAddress
- the name and address of the person being billed
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing failsvoid setName(java.lang.String name)
name
- the gateway namevoid setProperties(java.util.Properties properties)
properties
- the gateway propertiesvoid setSupportedCurrencies(java.util.List currencies)
currencies
- a List of currency code strings (e.g. CAD)void voidCaptureOrCredit(OrderPayment payment)
payment
- the payment to be voided
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |