com.elasticpath.domain.payment.impl
Class PayflowProPaymentGatewayImpl
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.PayflowProPaymentGatewayImpl
- All Implemented Interfaces:
- EpDomain, CreditCardPaymentGateway, PaymentGateway, Transient, java.io.Serializable
public class PayflowProPaymentGatewayImpl
- extends AbstractCreditCardPaymentGatewayImpl
- implements CreditCardPaymentGateway
Implements a payment gateway for Verisign/paypal's PayflowPro.
Supports the following gateway properties in commerce-config.xml:
Parameter Name | Required? | Comments |
user | YES | |
password | YES | |
vendor | YES | |
partner | YES | |
certificateLocation | YES | RELATIVE/PATH/TO/CERT/DIRECTORY (from WEB-INF) |
hostAddress | YES | |
hostPort | NO | Defaults to 443 |
timeout | NO | Defaults to 30 (seconds) |
proxyAddress | NO | |
proxyPort | NO | |
proxyLogon | NO | |
proxyPassword | NO | |
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
public static final long serialVersionUID
- Serial version id.
- See Also:
- Constant Field Values
PayflowProPaymentGatewayImpl
public PayflowProPaymentGatewayImpl()
capture
public void capture(OrderPayment payment)
- Captures a payment on a previously authorized card.
- Specified by:
capture
in interface PaymentGateway
- Parameters:
payment
- the payment to be captured
- Throws:
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing fails
getPaymentType
public PaymentType getPaymentType()
- Get the type of this payment gateway.
- Specified by:
getPaymentType
in interface PaymentGateway
- Returns:
- the payment type
preAuthorize
public void preAuthorize(OrderPayment payment,
Address billingAddress)
- Pre-authorize a payment.
- Specified by:
preAuthorize
in interface PaymentGateway
- Parameters:
payment
- the payment to be preauthorizedbillingAddress
- the name and address of the person being billed
- Throws:
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 fails
reversePreAuthorization
public void reversePreAuthorization(OrderPayment payment)
- Reverse a previous pre-authorization.
- Specified by:
reversePreAuthorization
in interface PaymentGateway
- Parameters:
payment
- the payment that was previously pre-authorized
- Throws:
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing fails
sale
public void sale(OrderPayment payment,
Address billingAddress)
- Immediately process a payment.
- Specified by:
sale
in interface PaymentGateway
- Parameters:
payment
- the payment to be preauthorizedbillingAddress
- the name and address of the person being billed
- Throws:
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 fails
voidCaptureOrCredit
public void voidCaptureOrCredit(OrderPayment payment)
- Void a previous capture or credit. Can usually only be executed on the same day of the original transaction.
- Specified by:
voidCaptureOrCredit
in interface PaymentGateway
- Parameters:
payment
- the payment to be voided
- Throws:
CardExpiredException
- if the card has expired
CardErrorException
- if there was an error processing the given information
PaymentGatewayException
- if the payment processing fails