|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractTransientImpl
com.elasticpath.domain.payment.impl.AbstractPaymentGatewayImpl
com.elasticpath.domain.payment.impl.AbstractCreditCardPaymentGatewayImpl
com.elasticpath.domain.payment.impl.CyberSourcePaymentGatewayImpl
public class CyberSourcePaymentGatewayImpl
Implements a payment gateway for CyberSource.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
CyberSourcePaymentGatewayImpl()
|
|
| Method Summary | |
|---|---|
void |
capture(OrderPayment payment)
Captures a payment on a previously authorized card. |
PaymentType |
getPaymentType()
Get the type of this payment gateway. |
void |
preAuthorize(OrderPayment payment,
Address billingAddress)
Pre-authorize a payment. |
void |
reversePreAuthorization(OrderPayment payment)
Reverse a previous pre-authorization. |
void |
sale(OrderPayment payment,
Address billingAddress)
Make a payment without pre-authorization. |
void |
setProperties(java.util.Properties properties)
Set the properties of the payment gateway (e.g. |
void |
voidCaptureOrCredit(OrderPayment payment)
Void a previous capture or credit. |
| Methods inherited from class com.elasticpath.domain.payment.impl.AbstractCreditCardPaymentGatewayImpl |
|---|
getSupportedCardTypes, setSupportedCardTypes, setValidateCvv2, validateCvv2 |
| Methods inherited from class com.elasticpath.domain.payment.impl.AbstractPaymentGatewayImpl |
|---|
getName, getProperties, getSupportedCurrencies, refund, setName, setSupportedCurrencies |
| 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.CreditCardPaymentGateway |
|---|
getSupportedCardTypes, setSupportedCardTypes, setValidateCvv2, validateCvv2 |
| Methods inherited from interface com.elasticpath.domain.payment.PaymentGateway |
|---|
getName, getProperties, getSupportedCurrencies, refund, setName, setSupportedCurrencies |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
getElasticPath, setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public CyberSourcePaymentGatewayImpl()
| Method Detail |
|---|
public void capture(OrderPayment payment)
capture in interface PaymentGatewaypayment - 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 failspublic PaymentType getPaymentType()
getPaymentType in interface PaymentGateway
public void preAuthorize(OrderPayment payment,
Address billingAddress)
preAuthorize in interface PaymentGatewaypayment - 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 failspublic void reversePreAuthorization(OrderPayment payment)
reversePreAuthorization in interface PaymentGatewaypayment - 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 fails
public void sale(OrderPayment payment,
Address billingAddress)
sale in interface PaymentGatewaypayment - 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 failspublic void setProperties(java.util.Properties properties)
setProperties in interface PaymentGatewaysetProperties in class AbstractPaymentGatewayImplproperties - the gateway propertiespublic void voidCaptureOrCredit(OrderPayment payment)
voidCaptureOrCredit in interface PaymentGatewaypayment - 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 | ||||||||