|
|||||||||
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 com.elasticpath.domain.payment.impl.AbstractCreditCardPaymentGatewayImpl com.elasticpath.domain.payment.impl.AuthorizeNetPaymentGatewayImpl
public class AuthorizeNetPaymentGatewayImpl
Implements a payment gateway for Authorize.Net. Supports the following gateway properties in commerce-config.xml:
Parameter Name | Required? | Comments/example |
authorizeNetURL | YES | https://certification.authorize.net/gateway/transact.dll |
testMode | YES | true |
loginId | YES | XXXX |
transKey | YES | XXXX |
version | YES | 3.1 |
delimChar | NO | defaults to "|" |
encapChar | NO | character used to encapsulate the fields in a transaction response. Defaults to "". |
Field Summary | |
---|---|
static java.lang.String |
PROP_DELIMCHAR
"Request/Response Delimiting Character" property key. |
static java.lang.String |
PROP_ENCAPCHAR
"Request/Response Encapsulation Character" property key. |
static java.lang.String |
PROP_LOGINID
"Login ID" property key. |
static java.lang.String |
PROP_TESTMODE
"Test Mode" property key. |
static java.lang.String |
PROP_TRANSKEY
"Transaction Key" property key. |
static java.lang.String |
PROP_URL
"Connection URL" property key. |
static java.lang.String |
PROP_VERSION
"API Version" property key. |
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
AuthorizeNetPaymentGatewayImpl()
|
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)
Immediately process a payment. |
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, setProperties, 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, setProperties, setSupportedCurrencies |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Field Detail |
---|
public static final java.lang.String PROP_DELIMCHAR
public static final java.lang.String PROP_ENCAPCHAR
public static final java.lang.String PROP_LOGINID
public static final java.lang.String PROP_TESTMODE
public static final java.lang.String PROP_TRANSKEY
public static final java.lang.String PROP_URL
public static final java.lang.String PROP_VERSION
public static final long serialVersionUID
Constructor Detail |
---|
public AuthorizeNetPaymentGatewayImpl()
Method Detail |
---|
public void capture(OrderPayment payment)
capture
in interface PaymentGateway
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 failspublic PaymentType getPaymentType()
getPaymentType
in interface PaymentGateway
public void preAuthorize(OrderPayment payment, Address billingAddress)
preAuthorize
in interface PaymentGateway
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 failspublic void reversePreAuthorization(OrderPayment payment)
reversePreAuthorization
in interface PaymentGateway
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 failspublic void sale(OrderPayment payment, Address billingAddress)
sale
in interface PaymentGateway
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 failspublic void voidCaptureOrCredit(OrderPayment payment)
voidCaptureOrCredit
in interface PaymentGateway
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 |